mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
The helper jbd2_handle_buffer_credits() doesn't correctly handle reserved
handles which can lead to crashes. Fix it getting of journal pointer to
work for reserved handles as well.
Fixes: a9a8344ee1 ("ext4, jbd2: Provide accessor function for handle credits")
Reported-by: Eric Biggers <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>