]> 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)
commit5b9a11267b633b13bf2fd381b069f38523e3d179
tree92fcbcc82d476c66020ef907b5dd845e08a30934
parent414094c53827ffcfbd5801abb3b5cc6f46af62da
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