HomeFreeBSD

ciss(4): Fix overrun of array

Description

ciss(4): Fix overrun of array

The softc member 'ciss_logical' is an array of 'ciss_max_logical_bus' members.
Most of the time it is iterated correctly. This patch fixes the two instances
where the driver iterated off the end of the array.

Reported by: Coverity
CID: 1305492
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on
Parents
rS298669: iscsi_initiator(4): Fix use-after-free, double-free
Branches
Unknown
Tags
Unknown