diff options
author | Guoqing Jiang <guoqing.jiang@linux.dev> | 2022-12-30 09:09:26 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-01-17 08:33:36 -0700 |
commit | 9d6033e350694a67885605674244d43c9559dc36 (patch) | |
tree | 0ead31a084c7d70ba3d00b46190fd77ec16d996b /scripts/sorttable.h | |
parent | e3ff8887e7db757360f97634e0d6f4b8e27a8c46 (diff) | |
download | linux-9d6033e350694a67885605674244d43c9559dc36.tar.gz linux-9d6033e350694a67885605674244d43c9559dc36.tar.bz2 linux-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 <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20221230010926.32243-1-guoqing.jiang@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/sorttable.h')
0 files changed, 0 insertions, 0 deletions