diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-01-25 17:13:40 +0300 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-01-31 05:29:16 +0300 |
| commit | e6f791d95313c85f3dd4a26141e28e50ae9aa0ae (patch) | |
| tree | bae7079b67c091e2f260e71c7c7c2781d3159982 /net/unix/af_unix.c | |
| parent | ecf7ff49945f5741fa1da112f994939f942031d3 (diff) | |
| download | linux-e6f791d95313c85f3dd4a26141e28e50ae9aa0ae.tar.xz | |
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 <dan.carpenter@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
