]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a0c2be50297a4cb3cabb3834914ece10a94dfa4
treecef916555e9a605b09f7acda5776143e16550432
parentb95940d1725f217ff23cbaa8cf1b84a1f9e7d03a
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