]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cxacru: check data length is not negative
authorSimon Arlott <simon@fire.lp0.eu>
Sat, 21 Nov 2009 15:07:14 +0000 (15:07 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:52:58 +0000 (14:52 -0800)
commit0bbe0c805ab9268f2b985a3771fba0a408eb535a
treebc35d2d276ffd5b00b1d73b3946155ad5c1a9e23
parent5ab80cae250692617a8b0098bcef57fb3b7b55c8
USB: cxacru: check data length is not negative

When attempting to read data that is not actually
an array of values, the length may be negative
which causes an Oops due to a likely access off
the end of the data array.

This bug should not occur under normal use unless
the device returns an invalid response.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/cxacru.c