]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Detect misread of end-point count
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 2 Mar 2012 19:21:22 +0000 (13:21 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Mar 2012 20:53:47 +0000 (15:53 -0500)
commit4c1d552c4dea0ae598c99961409408121603a808
treeae7aa10257c863880a932d78f2b7231f9404ea3d
parente57c92e9a94e8758421d20e437adedde3462acd2
rtlwifi: Detect misread of end-point count

In the unlikely event of a misread of the USB end point count, the driver
generates a divide fault. To prevent this, add a check of the value
returned by _rtl_usb_init(). In addition, add some logging to indicate
why the condition occurred.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/usb.c