OSDN Git Service

rtlwifi: fix a potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Tue, 12 Mar 2019 07:56:33 +0000 (02:56 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 4 Apr 2019 10:24:53 +0000 (13:24 +0300)
commit765976285a8c8db3f0eb7f033829a899d0c2786e
tree92c091b8f99736cea26ea93864d7406b8fa8b503
parent2cd2b42439ea7d1231b6b3f0eb0fe606f2ba5160
rtlwifi: fix a potential NULL pointer dereference

In case alloc_workqueue fails, the fix reports the error and
returns to avoid NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/base.c