aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/zynq-fpga.c
diff options
context:
space:
mode:
authorYue Haibing <[email protected]>2024-10-22 09:52:08 +0000
committerDavid Sterba <[email protected]>2024-10-22 14:10:55 +0000
commit75f49c3dc7b7423d3734f2e4dabe3dac8d064338 (patch)
tree24ab82f1be70221420e126678af657f937d02b58 /drivers/fpga/zynq-fpga.c
parentbtrfs: reject ro->rw reconfiguration if there are hard ro requirements (diff)
downloadkernel-75f49c3dc7b7423d3734f2e4dabe3dac8d064338.tar.gz
kernel-75f49c3dc7b7423d3734f2e4dabe3dac8d064338.zip
btrfs: fix passing 0 to ERR_PTR in btrfs_search_dir_index_item()
The ret may be zero in btrfs_search_dir_index_item() and should not passed to ERR_PTR(). Now btrfs_unlink_subvol() is the only caller to this, reconstructed it to check ERR_PTR(-ENOENT) while ret >= 0. This fixes smatch warnings: fs/btrfs/dir-item.c:353 btrfs_search_dir_index_item() warn: passing zero to 'ERR_PTR' Fixes: 9dcbe16fccbb ("btrfs: use btrfs_for_each_slot in btrfs_search_dir_index_item") CC: [email protected] # 6.1+ Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Yue Haibing <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions