Axel Lin 35b3ac470b iwmc3200wifi: Return proper error for iwm_if_alloc
In the case of alloc_netdev_mq failure and kmalloc failure,
current implementation returns ERR_PTR(0).

As a result, the caller of iwm_if_alloc does not catch the error by IS_ERR
macro. Fix it by setting proper error code for ret variable in the failure
cases.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-01-13 15:46:44 -05:00
..
2010-06-03 03:18:23 -07:00
2010-06-03 03:18:23 -07:00
2010-10-15 15:53:27 +02:00
2010-04-16 15:47:00 -04:00
2010-04-23 14:43:45 -04:00
2010-06-03 03:18:23 -07:00