aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhong Jinghua <[email protected]>2023-06-05 20:21:59 +0800
committerJens Axboe <[email protected]>2023-06-07 07:50:48 -0600
commitf12bc113ce904777fd6ca003b473b427782b3dde (patch)
treedc0959ce6bb5f8d3116c864c844360332e1d6eb6 /tools/perf/scripts/python
parentddf63516d8d37528dc6834c7f19b55084e956068 (diff)
nbd: Add the maximum limit of allocated index in nbd_dev_add
If the index allocated by idr_alloc greater than MINORMASK >> part_shift, the device number will overflow, resulting in failure to create a block device. Fix it by imiting the size of the max allocation. Signed-off-by: Zhong Jinghua <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions