aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2021-11-02 09:52:35 +0800
committerJens Axboe <[email protected]>2021-11-02 10:50:27 -0600
commit940c264984fd1457918393c49674f6b39ee16506 (patch)
tree47e9ff9067a32c98fa597dbc0f258d7bd7d5f9a4 /tools/perf/util/trace-event-scripting.c
parente4c4871a73944353ea23e319de27ef73ce546623 (diff)
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 <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions