aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorGuoqing Jiang <[email protected]>2022-12-30 01:09:26 +0000
committerJens Axboe <[email protected]>2023-01-17 15:33:36 +0000
commit9d6033e350694a67885605674244d43c9559dc36 (patch)
tree0ead31a084c7d70ba3d00b46190fd77ec16d996b /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentblk-cgroup: fix missing pd_online_fn() while activating policy (diff)
downloadkernel-9d6033e350694a67885605674244d43c9559dc36.tar.gz
kernel-9d6033e350694a67885605674244d43c9559dc36.zip
block/rnbd-clt: fix wrong max ID in ida_alloc_max
We need to pass 'end - 1' to ida_alloc_max after switch from ida_simple_get to ida_alloc_max. Otherwise smatch warns. drivers/block/rnbd/rnbd-clt.c:1460 init_dev() error: Calling ida_alloc_max() with a 'max' argument which is a power of 2. -1 missing? Fixes: 24afc15dbe21 ("block/rnbd: Remove a useless mutex") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Guoqing Jiang <[email protected]> Acked-by: Jack Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions