mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 12:24:38 +00:00
at1700: Read buffer overflow
loop bound looks to be wrong, for an array of length 8 Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f83284fe20
commit
3b73e79b0d
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ static int __init at1700_probe1(struct net_device *dev, int ioaddr)
|
||||||
pos3 = mca_read_stored_pos( slot, 3 );
|
pos3 = mca_read_stored_pos( slot, 3 );
|
||||||
pos4 = mca_read_stored_pos( slot, 4 );
|
pos4 = mca_read_stored_pos( slot, 4 );
|
||||||
|
|
||||||
for (l_i = 0; l_i < 0x09; l_i++)
|
for (l_i = 0; l_i < 8; l_i++)
|
||||||
if (( pos3 & 0x07) == at1700_ioaddr_pattern[l_i])
|
if (( pos3 & 0x07) == at1700_ioaddr_pattern[l_i])
|
||||||
break;
|
break;
|
||||||
ioaddr = at1700_mca_probe_list[l_i];
|
ioaddr = at1700_mca_probe_list[l_i];
|
||||||
|
|
Loading…
Reference in a new issue