diff options
author | 2024-11-06 12:21:13 +0000 | |
---|---|---|
committer | 2024-11-11 14:34:22 +0100 | |
commit | 722d343f12a626c9aee8844f5bf19a107d9a1067 (patch) | |
tree | cabceac075df2a415a5772fb56abadc6cdc31782 /scripts/generate_rust_analyzer.py | |
parent | btrfs: fix warning on PTR_ERR() against NULL device at btrfs_control_ioctl() (diff) | |
download | wireguard-linux-722d343f12a626c9aee8844f5bf19a107d9a1067.tar.xz wireguard-linux-722d343f12a626c9aee8844f5bf19a107d9a1067.zip |
btrfs: remove check for NULL fs_info at btrfs_folio_end_lock_bitmap()
Smatch complains about possibly dereferencing a NULL fs_info at
btrfs_folio_end_lock_bitmap():
fs/btrfs/subpage.c:332 btrfs_folio_end_lock_bitmap() warn: variable dereferenced before check 'fs_info' (see line 326)
because we access fs_info to set the 'start_bit' variable before doing the
check for a NULL fs_info.
However fs_info is never NULL, since in the only caller of
btrfs_folio_end_lock_bitmap() is extent_writepage(), where we have an
inode which always as a non-NULL fs_info.
So remove the check for a NULL fs_info at btrfs_folio_end_lock_bitmap().
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions