Bug 69871 - drivers/scsi/bfa/bfad_bsg.c:110: possible bad array index ?
Summary: drivers/scsi/bfa/bfad_bsg.c:110: possible bad array index ?
Status: NEW
Alias: None
Product: SCSI Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: scsi_drivers-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 11:49 UTC by David Binderman
Modified: 2014-02-04 10:54 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.14-rc1
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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++)

Note You need to log in before you can comment on or make changes to this bug.