]> git.ipfire.org Git - people/arne_f/kernel.git/commit
jffs2_kill_sb(): deal with failed allocations
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 3 Apr 2018 03:56:44 +0000 (23:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:29:28 +0000 (09:29 +0200)
commit2e05f940f55a73ff835a0b6ee7d4dfbeaf9a7375
tree0b80f60ed75d99322f05efde22356030ac9625a9
parenteaf2bca68881d2d99289d5cfb18d04de55cc92ac
jffs2_kill_sb(): deal with failed allocations

commit c66b23c2840446a82c389e4cb1a12eb2a71fa2e4 upstream.

jffs2_fill_super() might fail to allocate jffs2_sb_info;
jffs2_kill_sb() must survive that.

Cc: stable@kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jffs2/super.c