UBIFS: fix incorrect unlocking handling
authorTaesoo Kim <tsgatesv@gmail.com>
Wed, 25 Mar 2015 08:53:37 +0000 (09:53 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 25 Mar 2015 09:08:40 +0000 (11:08 +0200)
commit9401a795c6478953e10226471ba5990db5000e05
tree4f655d1cf01561bf184c16bf4e9d323ed5d7cf3a
parent3527a86b7ae17c949307d00e1eb7087604bca1b4
UBIFS: fix incorrect unlocking handling

When ubifs_init_security() fails, 'ui_mutex' is incorrectly
unlocked and incorrectly restores 'i_size'. Fix this.

Signed-off-by: Taesoo Kim <tsgatesv@gmail.com>
Fixes: d7f0b70d30ff ("UBIFS: Add security.* XATTR support for the UBIFS")
Reviewed-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/dir.c