fjes: Handle workqueue allocation failure
authorWill Deacon <will@kernel.org>
Fri, 25 Oct 2019 11:06:02 +0000 (12:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Oct 2019 17:33:10 +0000 (10:33 -0700)
commit85ac30fa2e24f628e9f4f9344460f4015d33fd7d
treecef916555e9a605b09f7acda5776143e16550432
parent55793d2a431c184c8b9774f5df41d7f533505d8e
fjes: Handle workqueue allocation failure

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>
drivers/net/fjes/fjes_main.c