]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: fix a NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Thu, 11 Apr 2019 09:17:31 +0000 (11:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 18:04:08 +0000 (11:04 -0700)
commit774b8d54b04a0c74e78547dd0243a05e86506e21
tree05cb57ab0507aac5640939c941a924eee866ab31
parent3f4f8566aeea2fcc0eee82c54cb81ea69ba48b2e
net/smc: fix a NULL pointer dereference

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

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ism.c