diff options
author | Dan Carpenter <[email protected]> | 2017-04-21 16:48:40 -0600 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-04-21 16:48:40 -0600 |
commit | 5bf1e1ee6269f4db307bdfce45d196d6c9bc818a (patch) | |
tree | d2d18834ddcd94e3d30a80aae4517b49aaf0ebad /scripts/gdb/linux/proc.py | |
parent | 19b7ccf8651df09d274671b53039c672a52ad84d (diff) |
lightnvm: potential underflow in pblk_read_rq()
This is a static checker fix, and perhaps not a real bug. The static
checker thinks that nr_secs could be negative. It would result in
zeroing more memory than intended. Anyway, even if it's not a bug,
changing this variable to unsigned makes the code easier to audit.
Fixes: a4bd217b4326 ("lightnvm: physical block device (pblk) target")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Javier González <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions