aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2015-03-12 20:24:31 +0300
committerGreg Kroah-Hartman <[email protected]>2015-03-24 15:31:24 +0100
commit4bef52f377b6410a89fc580a8948033f613854f8 (patch)
tree037515e1fa5cfe94d88646696a58317e1d136ac2 /tools/perf/scripts/python/export-to-postgresql.py
parentedc16d8d481e4c73f9d70d648463d4b25d2c662b (diff)
staging: dgnc: some off by one bugs
"dgnc_NumBoards" is the number of filled out elements in the dgnc_Board[] array. "->nasync" and "->maxports" are the same value. They are the number of channels in the ->channels[] array so these tests should be ">=" instead of ">" so we avoid reading past the end of the arrays. I cleaned up the conditions in dgnc_mgmt_ioctl() a bit. There was a work around for the off by one bug in the case where there were no boards which is no longer needed. "channel" is unsigned so it can't be negative. Signed-off-by: Dan Carpenter <[email protected]> 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