aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/caif
diff options
context:
space:
mode:
authorAnirudh Rayabharam <mail@anirudhrb.com>2021-05-03 13:56:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-03 09:00:40 +0200
commit62c2472aeee411260dae6fabc8248eedf2e3b94d (patch)
tree2cc07c3367c546fe48c8daddfa18e738e1ddf6e0 /drivers/net/caif
parent83d4efe6bf0309a86b00ec86dadf3ee847e3ab5e (diff)
downloadkernel_replicant_linux-62c2472aeee411260dae6fabc8248eedf2e3b94d.tar.gz
kernel_replicant_linux-62c2472aeee411260dae6fabc8248eedf2e3b94d.tar.bz2
kernel_replicant_linux-62c2472aeee411260dae6fabc8248eedf2e3b94d.zip
net/smc: properly handle workqueue allocation failure
[ Upstream commit bbeb18f27a44ce6adb00d2316968bc59dc640b9b ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/caif')
0 files changed, 0 insertions, 0 deletions