]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
fjes: Handle workqueue allocation failure
authorWill Deacon <will@kernel.org>
Fri, 25 Oct 2019 11:06:02 +0000 (12:06 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:15 +0000 (13:16 +0100)
commitf074bcc32a550c177d2d64700f1429d27cf5995e
tree5dc87782ee127261c9043f9f5a4f2b626831d59b
parentc0579128d7b8f804d9d5aa116a5a2314d346ed6e
fjes: Handle workqueue allocation failure

BugLink: https://bugs.launchpad.net/bugs/1853519
[ Upstream commit 85ac30fa2e24f628e9f4f9344460f4015d33fd7d ]

In the highly unlikely event that we fail to allocate either of the
"/txrx" or "/control" workqueues, we should bail cleanly rather than
blindly march on with NULL queue pointer(s) installed in the
'fjes_adapter' instance.

Cc: "David S. Miller" <davem@davemloft.net>
Reported-by: Nicolas Waisman <nico@semmle.com>
Link: https://lore.kernel.org/lkml/CADJ_3a8WFrs5NouXNqS5WYe7rebFP+_A5CheeqAyD_p7DFJJcg@mail.gmail.com/
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/fjes/fjes_main.c