cnic: ensure ulp_type is not negative
authorroel kluin <roel.kluin@gmail.com>
Mon, 2 Nov 2009 06:53:44 +0000 (06:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Nov 2009 13:06:23 +0000 (05:06 -0800)
commit0d37f36ff9bc41067c71635d14b6a5834853a779
tree85571370b58b1f4e5596219171cea0004727ddc7
parent885ee398de2354cf4526a3ecaf9e84e292393007
cnic: ensure ulp_type is not negative

`ulp_type' is signed, make sure it is not negative
when we read the array element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c