Bug 69871

Summary: drivers/scsi/bfa/bfad_bsg.c:110: possible bad array index ?
Product: SCSI Drivers Reporter: David Binderman (dcb314)
Component: OtherAssignee: scsi_drivers-other
Status: NEW ---    
Severity: normal CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.14-rc1 Subsystem:
Regression: No Bisected commit-id:

Description David Binderman 2014-02-03 11:49:00 UTC
[linux-3.14-rc1/drivers/scsi/bfa/bfad_bsg.c:110]: (style) Array index 'i' is used before limits check.

Source code is

    for (i = 0; iocmd->adapter_hwpath[i] != ':' && i < BFA_STRING_32; i++)