usbnet: test off by one
authorroel kluin <roel.kluin@gmail.com>
Sun, 27 Dec 2009 11:22:08 +0000 (11:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2010 05:42:50 +0000 (21:42 -0800)
commitc064efca9211d12bb9e6de8718fc39884eb883f2
tree08bbd1373039d5a3466e72a4d079ee63af14a076
parentce739b473ce12d5ef067b39b8637bfd2b2174a15
usbnet: test off by one

With `while (i++ < MII_TIMEOUT)' i reaches MII_TIMEOUT + 1 after the loop
This is probably unlikely a problem in practice.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/rtl8150.c