summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXu Rao <raoxu@uniontech.com>2026-07-06 17:25:00 +0800
committerUlf Hansson <ulfh@kernel.org>2026-07-10 14:39:18 +0200
commit5253aee00a4383cb0482d5e99bde48b8054ae2c0 (patch)
tree5e628480d92a17f97e40944f59c890fe095ee3b1 /tools/perf/scripts/python
parentdf92d47b3ae7384588e9b54665d66d76273f9c4e (diff)
mmc: block: reject invalid perdev_minors before division
The mmcblk.perdev_minors module parameter is parsed as a signed int and is used during mmc_blk_init() to compute the number of supported block devices. Passing perdev_minors=0 makes the init path divide by zero when it computes max_devices. Negative values are invalid as well and would make max_devices negative before it is later used as an IDA limit. Reject non-positive perdev_minors values before registering any mmcblk resources. Signed-off-by: Xu Rao <raoxu@uniontech.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions