]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix wrong return values in add_virtual_intf() error cases
authorBing Zhao <bzhao@marvell.com>
Fri, 15 Jun 2012 22:49:54 +0000 (15:49 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Jun 2012 18:59:19 +0000 (14:59 -0400)
commitf9b3adc6628fc85183c9e2197a6a2b58e35a4545
tree145bd3842a6d1af9b2e7ac2b6c90185443811778
parentebe0fec849582ae0ebb1a4a7de61a09b4e841e00
mwifiex: fix wrong return values in add_virtual_intf() error cases

add_virtual_intf() needs to return an ERR_PTR(), instead of NULL,
on errors, otherwise cfg80211 will crash.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c