aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-11-29 17:16:51 +0300
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-12-10 15:28:49 +0200
commit6c810f90140a3274181c4093d5dd4c88c6fff0b4 (patch)
tree6e9ee0717e00b69bd52474789bc2ff38cf185912 /tools/perf/scripts/python/export-to-postgresql.py
parentmtd: bcm47xxnflash: writing support (diff)
downloadlinux-dev-6c810f90140a3274181c4093d5dd4c88c6fff0b4.tar.xz
linux-dev-6c810f90140a3274181c4093d5dd4c88c6fff0b4.zip
mtg: docg3: potential divide by zero in doc_write_oob()
If we set oobdelta to zero then we will either return -EINVAL or hit a divide (modulus) by zero on the next line when we check "(ooblen % oobdelta)". It's better to just return -EINVAL here instead. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions