Commit 27d2f101 authored by Edward Adam Davis's avatar Edward Adam Davis Committed by Andreas Gruenbacher
Browse files

gfs2: check sb_min_blocksize return value



Check the return value of sb_min_blocksize(): it will be 0 when the
requested block size is invalid.

In addition, check the return value of sb_set_blocksize() as well.

Reported-by: default avatar <syzbot+b0018b7468b2af33b4d5@syzkaller.appspotmail.com>
Signed-off-by: default avatarEdward Adam Davis <eadavis@qq.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent ae9f3bd8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment