OSDN Git Service

staging: rtl8723au: rtw_wdev_alloc(): Don't register wiphy before kmalloc() completed
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 25 May 2014 20:43:18 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 May 2014 22:14:40 +0000 (15:14 -0700)
commitd165e4efbc6d76cff51abb523567a840cb6623b9
tree92fcbcc82d476c66020ef907b5dd845e08a30934
parent56b0bd91e0087e0b172aec022bdfb4fcd9de9194
staging: rtl8723au: rtw_wdev_alloc(): Don't register wiphy before kmalloc() completed

There is no point starting to register the wiphy and then having to
unregister it again if the followon kmalloc() fails.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c