]> git.ipfire.org Git - thirdparty/linux.git/commit
hpfs: fix a crash if hpfs_map_dnode_bitmap fails
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 25 May 2026 12:48:58 +0000 (14:48 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 25 May 2026 12:48:58 +0000 (14:48 +0200)
commit974820a59efde7c1a7e1260bcfe9bb81f833cc9f
tree1e6d6d137503befefdbefa11d402cefd60f8f37b
parente7ae89a0c97ce2b68b0983cd01eda67cf373517d
hpfs: fix a crash if hpfs_map_dnode_bitmap fails

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
fs/hpfs/alloc.c