alistair23-linux/drivers/staging/rts5139
Dan Carpenter 2471ec5895 Staging: rts5139: a couple off by one fixes
Inside the array we check ms_start_idx[seg_no + 1] so on the last round
through we end up going past the end of the array.

Also if we don't break out of the loop early then we are beyond the end
of the array there as well.  With this change, if we don't find what we
are looking for, we end on the last element of the array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-10 10:31:00 -07:00
..
debug.h
Kconfig staging: fix rts5139 depends & build 2011-08-26 11:35:54 -07:00
Makefile
ms.c Staging: rts5139: a couple off by one fixes 2012-04-10 10:31:00 -07:00
ms.h staging: rts5139: fix pointer coding style 2012-02-09 09:41:34 -08:00
ms_mg.c
ms_mg.h
rts51x.c USB: convert drivers/staging/* to use module_usb_driver() 2011-11-18 09:42:11 -08:00
rts51x.h Staging: remove version.h includes in drivers/staging/rts5139 2011-12-12 16:57:05 -08:00
rts51x_card.c
rts51x_card.h
rts51x_chip.c staging: rts5139: fix pointer coding style 2012-02-09 09:41:34 -08:00
rts51x_chip.h staging: rts5139: fix pointer coding style 2012-02-09 09:41:34 -08:00
rts51x_fop.c
rts51x_fop.h staging: rts5139: fix pointer coding style 2012-02-09 09:41:34 -08:00
rts51x_scsi.c staging: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/staging users. 2011-10-31 19:32:08 -04:00
rts51x_scsi.h
rts51x_sys.h
rts51x_transport.c staging: rts5139: fix pointer coding style 2012-02-09 09:41:34 -08:00
rts51x_transport.h staging: rts5139: fix pointer coding style 2012-02-09 09:41:34 -08:00
sd.c
sd.h
sd_cprm.c staging: rts5139: fix pointer coding style 2012-02-09 09:41:34 -08:00
sd_cprm.h
TODO staging: Update TODO for rts5139 and rts_pstor 2012-02-24 12:03:14 -08:00
trace.h
xd.c
xd.h