commit | 48de1a17fc41613b7e9d61037fa989256d04234f | [log] [tgz] |
---|---|---|
author | Larry Finger <Larry.Finger@lwfinger.net> | Fri Mar 02 13:21:22 2012 -0600 |
committer | John W. Linville <linville@tuxdriver.com> | Mon Mar 05 15:53:47 2012 -0500 |
tree | ae7aa10257c863880a932d78f2b7231f9404ea3d | |
parent | 3abead59fcdeb56df8b83288a2f5edbe6423b0bb [diff] |
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>