sfc: check async completer is !NULL before calling
authorBert Kenward <bkenward@solarflare.com>
Thu, 22 Sep 2016 14:47:45 +0000 (15:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2016 11:18:35 +0000 (07:18 -0400)
commit429baa6f0e1b9237a3667c3a5e8ca76051e6d0b7
treee47aba807474005120300978b57a09b358581491
parent88e4f75900368b8a6febb7bc7d379d52d02e920d
sfc: check async completer is !NULL before calling

Add a NULL check before calling asynchronous MCDI completion functions
during device removal.

Fixes: 7014d7f6 ("sfc: allow asynchronous MCDI without completion function")
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/mcdi.c