]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pds_core: check for workqueue allocation failure
authorNikhil P. Rao <nikhil.rao@amd.com>
Tue, 14 Jul 2026 21:27:13 +0000 (21:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Jul 2026 19:47:59 +0000 (12:47 -0700)
commit3a660ca49e2c3807bffe0519db3cff677a5906e0
tree591992e2fdf69e17c536e88396ccf86fde2f718a
parentbfa33cd513c7ceb93c5a4c30e5662acd73c0a916
pds_core: check for workqueue allocation failure

pdsc_init_pf() does not check whether create_singlethread_workqueue()
succeeded.

Fail probe on failure. The workqueue is set up before the timer and
mutexes, so its failure path must unwind only the earlier setup.

Fixes: c2dbb0904310 ("pds_core: health timer and workqueue")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260629200358.2626129-1-nikhil.rao%40amd.com?part=2
Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20260714212713.1788438-1-nikhil.rao@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amd/pds_core/main.c