net: qlge: fix a potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Mon, 11 Mar 2019 06:53:15 +0000 (01:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Mar 2019 23:16:22 +0000 (16:16 -0700)
commit4280b73092fe136d412db9e8e0d69cbc753cdac6
tree90ff56d2a78c023c441717a05f13ea626439119a
parentab0891f5d820a863a24ee410b04ac10424b9bb03
net: qlge: fix a potential NULL pointer dereference

In case alloc_ordered_workqueue fails, the fix returns
-ENOMEM to avoid NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlge/qlge_main.c