aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2019-11-05 17:44:07 +0100
committerTheodore Ts'o <[email protected]>2019-11-05 12:13:25 -0500
commitadd3efdd78b8a0478ce423bb9d4df6bd95e8b335 (patch)
tree0555cd095901cba4a4a91e86d58eaf459e9f2c51 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parent4f5cafb5cb8471e54afdc9054d973535614f7675 (diff)
jbd2: Fix possible overflow in jbd2_log_space_left()
When number of free space in the journal is very low, the arithmetic in jbd2_log_space_left() could underflow resulting in very high number of free blocks and thus triggering assertion failure in transaction commit code complaining there's not enough space in the journal: J_ASSERT(journal->j_free > 1); Properly check for the low number of free blocks. CC: [email protected] Reviewed-by: Theodore Ts'o <[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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions