Adam Thomas 8afd500cb5 UBIFS: fix double free of ubifs_orphan objects
The last orphan in the dnext list has its dnext set to NULL. Because
of that, ubifs_delete_orphan assumes that it is not on the dnext list
and frees it immediately instead ignoring it as a second delete. The
orphan is later freed again by erase_deleted.

This change adds an explicit flag to ubifs_orphan indicating whether
it is pending delete.

Signed-off-by: Adam Thomas <adamthomas1111@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@vger.kernel.org
2013-02-04 12:31:48 +02:00
..
2012-10-02 20:47:48 -07:00
2012-08-31 17:32:58 +03:00
2012-08-31 17:32:57 +03:00
2012-08-31 17:32:58 +03:00
2012-10-09 16:22:17 +09:00
2012-08-31 17:32:57 +03:00
2012-05-20 20:25:59 +03:00
2012-01-03 22:52:40 -05:00
2012-05-16 19:53:46 +03:00
2012-08-31 17:32:57 +03:00
2012-08-31 17:32:58 +03:00
2012-05-20 20:25:59 +03:00
2011-07-04 10:54:33 +03:00
2012-08-31 17:32:57 +03:00
2012-08-31 17:32:58 +03:00
2012-10-02 20:47:48 -07:00
2012-08-31 17:32:57 +03:00
2012-10-02 20:47:48 -07:00
2012-08-31 17:32:58 +03:00
2012-05-22 19:30:27 -07:00
2012-05-22 19:30:27 -07:00