aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2019-08-21 10:09:53 +0300
committerGreg Kroah-Hartman <[email protected]>2019-08-22 14:28:10 -0700
commit56a635c0ec14950bd6a5bfb4d9d497897f64179f (patch)
tree0e962948a9fa8fe4a58057d6b40a877dbd7c3f50 /tools/perf/scripts/python/export-to-postgresql.py
parent129c3b082c636087a72a30b17c87c57d197f08f5 (diff)
misc: xilinx_sdfec: Prevent a divide by zero in xsdfec_reg0_write()
The "psize" value comes from the user so we need to verify that it's non-zero before we check if "n % psize" or it will crash. Fixes: 20ec628e8007 ("misc: xilinx_sdfec: Add ability to configure LDPC") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/20190821070953.GC26957@mwanda Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions