]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ciss(4): Fix overrun of array
authorConrad Meyer <cem@FreeBSD.org>
Tue, 26 Apr 2016 22:01:07 +0000 (22:01 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Tue, 26 Apr 2016 22:01:07 +0000 (22:01 +0000)
commit5eae46af9c065fddf1008510e75f0f42a4825f37
tree942b1f93a0577843bf3ed10cd4ac91edac6cd820
parent90b9cca2a8550ebbbfddb9dfc36cc715536d31b4
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
sys/dev/ciss/ciss.c