]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4d5da9232368cc41883f9c031c639bc6ec26984
tree92fcbcc82d476c66020ef907b5dd845e08a30934
parentbc28b95420f1e12c4da52d9f740ab0c4037e8ca4
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