]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: qlogic: fix a potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Tue, 12 Mar 2019 07:06:47 +0000 (02:06 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2019 21:44:43 +0000 (14:44 -0700)
commiteb32cfcdef2305dc0e44a65d42801315669bb27e
tree643aac75c72813b02dfd9f9355d6020181419adb
parent10010493c1261ca3d7444d372f281009890a5ff7
net: qlogic: fix a potential NULL pointer dereference

In case create_singlethread_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/qla3xxx.c