mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 11:41:01 +00:00
hpfs: fix a crash if hpfs_map_dnode_bitmap fails
commit 974820a59efde7c1a7e1260bcfe9bb81f833cc9f upstream. If hpfs_map_dnode_bitmap fails, the code would call hpfs_brelse4 on uninitialized quad buffer head, causing a crash. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Reported-by: Farhad Alemi <farhad.alemi@berkeley.edu> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ulrich Hecht <uli@kernel.org>
This commit is contained in:
committed by
Ulrich Hecht
parent
f5dacf83f3
commit
38114e79dc
@ -372,8 +372,8 @@ int hpfs_check_free_dnodes(struct super_block *s, int n)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
hpfs_brelse4(&qbh);
|
||||
}
|
||||
hpfs_brelse4(&qbh);
|
||||
i = 0;
|
||||
if (hpfs_sb(s)->sb_c_bitmap != -1) {
|
||||
bmp = hpfs_map_bitmap(s, b, &qbh, "chkdn1");
|
||||
|
||||
Reference in New Issue
Block a user