diff options
| author | Mikulas Patocka <[email protected]> | 2015-06-05 09:50:42 -0400 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2015-06-17 12:40:39 -0400 |
| commit | dd4c1b7d0c95be1c9245118a3accc41a16f1db67 (patch) | |
| tree | 3f2ba6693d124977cd18155d132f52a1de20c9b2 /scripts/gdb/linux/utils.py | |
| parent | bccab6a01afc26f53d91762d78153513cad10b29 (diff) | |
dm stats: fix divide by zero if 'number_of_areas' arg is zero
If the number_of_areas argument was zero the kernel would crash on
div-by-zero. Add better input validation.
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Cc: [email protected] # v3.12+
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions