]> git.baikalelectronics.ru Git - kernel.git/commit
isdn: hfc_usb: Fix read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 4 Nov 2009 16:31:59 +0000 (08:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Nov 2009 16:31:59 +0000 (08:31 -0800)
commit6413e9857b743a57aa0ef672325b7d0bfb081176
tree0d2dce58a4a44d1697ef51e603b08330344106c1
parent3ad982d7356994d8a62e24e9259ac5b20c2602c6
isdn: hfc_usb: Fix read buffer overflow

Check whether index is within bounds before testing the element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/hfc_usb.c