aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-sqlite-report
diff options
context:
space:
mode:
authorAndrĂ© Almeida <[email protected]>2019-09-11 11:46:36 -0300
committerJens Axboe <[email protected]>2019-09-11 16:04:25 -0600
commitf7c4ce890dd23f2d41ad9630263aad6e9720af58 (patch)
tree342c22408ea5245be96bf4c4461d74555c90ea09 /tools/perf/scripts/python/bin/export-to-sqlite-report
parent4e47ee8fbef08f1711ffcc2063ce0e3250141b16 (diff)
null_blk: validate the number of devices
A negative number of devices is nonsensical, so change the type to unsigned. If the number of devices is 0, it is impossible for userspace to interact with the module, so refuse loading the driver for that case. Signed-off-by: AndrĂ© Almeida <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions