diff options
author | Anirudh Rayabharam <mail@anirudhrb.com> | 2021-05-03 13:56:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-13 17:30:36 +0200 |
commit | bbeb18f27a44ce6adb00d2316968bc59dc640b9b (patch) | |
tree | 0ebfcc8e5f1da50a7391e5a6540152e2a4b91e19 /drivers/clk/mvebu/ap806-system-controller.c | |
parent | Revert "net/smc: fix a NULL pointer dereference" (diff) | |
download | linux-bbeb18f27a44ce6adb00d2316968bc59dc640b9b.tar.xz linux-bbeb18f27a44ce6adb00d2316968bc59dc640b9b.zip |
net/smc: properly handle workqueue allocation failure
In smcd_alloc_dev(), if alloc_ordered_workqueue() fails, properly catch
it, clean up and return NULL to let the caller know there was a failure.
Move the call to alloc_ordered_workqueue higher in the function in order
to abort earlier without needing to unwind the call to device_initialize().
Cc: Ursula Braun <ubraun@linux.ibm.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Anirudh Rayabharam <mail@anirudhrb.com>
Link: https://lore.kernel.org/r/20210503115736.2104747-18-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clk/mvebu/ap806-system-controller.c')
0 files changed, 0 insertions, 0 deletions