Artem Bityutskiy 11e3be0be2 UBIFS: fix crash on error path
This patch fixes a regression introduced by
"4994297 UBIFS: make ubifs_lpt_init clean-up in case of failure" which
I've hit while running the 'integck -p' test. When remount the file-system
from R/O mode to R/W mode and 'lpt_init_wr()' fails, we free _all_ LPT
resources by calling 'ubifs_lpt_free(c, 0)', even those needed for R/O
mode. This leads to subsequent crashes, e.g., if we try to unmount
the file-system.

Cc: stable@vger.kernel.org [v3.5+]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2012-08-21 15:25:24 +03:00
..
2012-05-16 20:11:23 +03:00
2008-12-31 14:13:24 +02:00
2012-08-04 12:15:41 +04:00
2012-06-18 14:17:08 +03:00
2012-05-20 20:25:59 +03:00
2012-05-20 20:25:59 +03:00
2012-01-03 22:52:40 -05:00
2012-05-20 20:25:59 +03:00
2012-05-16 19:53:46 +03:00
2012-05-20 20:25:59 +03:00
2012-05-20 20:25:59 +03:00
2012-08-21 15:25:24 +03:00
2012-05-20 20:25:59 +03:00
2011-07-04 10:54:33 +03:00
2012-05-20 20:25:59 +03:00
2012-07-20 10:27:25 +03:00
2012-07-20 10:13:27 +03:00
2012-05-16 20:11:23 +03:00
2012-08-21 15:25:24 +03:00
2012-05-20 20:25:59 +03:00
2012-05-16 20:11:23 +03:00
2012-05-22 19:30:27 -07:00
2012-05-20 20:25:59 +03:00
2012-05-22 19:30:27 -07:00