[netdrvr] fix array overflows in Chelsio driver
authorScott Bardone <sbardone@chelsio.com>
Fri, 17 Mar 2006 00:20:40 +0000 (19:20 -0500)
committerJeff Garzik <jeff@garzik.org>
Fri, 17 Mar 2006 00:20:40 +0000 (19:20 -0500)
commit232a347a444e687b5f8cf0f6485704db1c6024d3
tree7b538d45346c328cd143675c54d043eda25f618c
parentc3d7a3a4eb5e8f290d7b1d61430eed1ebedeb936
[netdrvr] fix array overflows in Chelsio driver

Adrian Bunk wrote:
> The Coverity checker spotted the following two array overflows in
> drivers/net/chelsio/sge.c (in both cases, the arrays contain 3
> elements):
[snip]

This is a bug. The array should contain 2 elements.  Here is the fix.

Signed-off-by: Scott Bardone <sbardone@chelsio.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/chelsio/sge.c