Re: drivers/net/niu.c: possible array overflows

2007-10-15 Thread David Miller
From: Adrian Bunk <[EMAIL PROTECTED]> Date: Sun, 14 Oct 2007 19:50:24 +0200 > The Coverity checker spotted the following in drivers/net/niu.c: Thanks for the report Adrian, I'll fix it like this: commit 503211a947ab13fb44d920f78f1e19057efc277f Author: David S. Miller <[EMAIL PROTECTED]> Date:

drivers/net/niu.c: possible array overflows

2007-10-14 Thread Adrian Bunk
The Coverity checker spotted the following in drivers/net/niu.c: <-- snip --> ... static int __devinit niu_pci_probe_sprom(struct niu *np) { ... val = nr64(ESPC_MOD_STR_LEN); niudbg(PROBE, "SPROM: MOD_STR_LEN[%llu]\n", (unsigned long long) val); if (val >