aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptctl.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2018-01-25 14:13:40 +0000
committerMartin K. Petersen <[email protected]>2018-01-31 02:29:16 +0000
commite6f791d95313c85f3dd4a26141e28e50ae9aa0ae (patch)
treebae7079b67c091e2f260e71c7c7c2781d3159982 /drivers/message/fusion/mptctl.c
parentscsi: bnx2fc: Fix check in SCSI completion handler for timed out request (diff)
downloadkernel-e6f791d95313c85f3dd4a26141e28e50ae9aa0ae.tar.gz
kernel-e6f791d95313c85f3dd4a26141e28e50ae9aa0ae.zip
scsi: sym53c8xx_2: iterator underflow in sym_getsync()
We wanted to exit the loop with "div" set to zero, but instead, if we don't hit the break then "div" is -1 when we finish the loop. It leads to an array underflow a few lines later. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Acked-by: Matthew Wilcox <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
0 files changed, 0 insertions, 0 deletions