summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-08-04 11:17:33 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-24 22:29:01 -0400
commit59e3da58705b3d86f45c68b639a6e9f22341bd11 (patch)
treea380df8798bcb8b8719c7bbf0c32b472f117994f /init
parent32690e0b5601f95610f0254202ad2321900ac726 (diff)
downloadlinux-59e3da58705b3d86f45c68b639a6e9f22341bd11.tar.gz
scsi: osst: silence underflow warning in osst_verify_frame()
The code looks like this:

	i = ntohl(aux->filemark_cnt);
	if (STp->header_cache != NULL && i < OS_FM_TAB_MAX && (i > STp->filemark_cnt ||
	    STp->first_frame_position - 1 != ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[i]))) {

If i is negative then it's less than OS_FM_TAB_MAX so we read before
the start of the STp->header_cache->dat_fm_tab.fm_tab_ent[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions