commit | 2cbba75a56ea78e6876b4e2547a882f10b3fe72b | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Mon Nov 05 22:40:14 2012 +0400 |
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | Sun Nov 18 11:59:01 2012 +0200 |
tree | 5a3789fbc954d829605e0bd3d5fa49bedcfcbbc9 | |
parent | d68cbdd4fb04d2b756ad53c22f36943167b16340 [diff] |
jffs2: hold erase_completion_lock on exit Users of jffs2_do_reserve_space() expect they still held erase_completion_lock after call to it. But there is a path where jffs2_do_reserve_space() leaves erase_completion_lock unlocked. The patch fixes it. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Cc: stable@vger.kernel.org Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>