summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-11-02 09:52:35 +0800
committerJens Axboe <axboe@kernel.dk>2021-11-02 10:50:27 -0600
commit940c264984fd1457918393c49674f6b39ee16506 (patch)
tree47e9ff9067a32c98fa597dbc0f258d7bd7d5f9a4 /mm/slab.c
parente4c4871a73944353ea23e319de27ef73ce546623 (diff)
downloadlinux-940c264984fd1457918393c49674f6b39ee16506.tar.gz
linux-940c264984fd1457918393c49674f6b39ee16506.tar.bz2
linux-940c264984fd1457918393c49674f6b39ee16506.zip
nbd: fix possible overflow for 'first_minor' in nbd_dev_add()
If 'part_shift' is not zero, then 'index << part_shift' might overflow to a value that is not greater than '0xfffff', then sysfs might complains about duplicate creation. Fixes: b0d9111a2d53 ("nbd: use an idr to keep track of nbd devices") Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Link: https://lore.kernel.org/r/20211102015237.2309763-3-yebin10@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/slab.c')
0 files changed, 0 insertions, 0 deletions