diff options
author | Adam Thomas <adamthomas1111@gmail.com> | 2013-02-02 22:35:08 +0000 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-22 10:16:29 +0200 |
commit | 9fa2e9105e532ea17669f61a00f4df2c5b3f9839 (patch) | |
tree | d08976d9ca1a68653d235592d95df208e647bbb1 /lib/crc32.c | |
parent | 09462c277fe9a880a76d6c5cf2a1f7821a7e4d03 (diff) |
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
Diffstat (limited to 'lib/crc32.c')
0 files changed, 0 insertions, 0 deletions