Commit 7014d7f6 authored by Bert Kenward's avatar Bert Kenward Committed by David S. Miller

sfc: allow asynchronous MCDI without completion function

Signed-off-by: default avatarBert Kenward <bkenward@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d29e33d6
...@@ -548,7 +548,10 @@ static bool efx_mcdi_complete_async(struct efx_mcdi_iface *mcdi, bool timeout) ...@@ -548,7 +548,10 @@ static bool efx_mcdi_complete_async(struct efx_mcdi_iface *mcdi, bool timeout)
efx_mcdi_display_error(efx, async->cmd, async->inlen, errbuf, efx_mcdi_display_error(efx, async->cmd, async->inlen, errbuf,
err_len, rc); err_len, rc);
} }
async->complete(efx, async->cookie, rc, outbuf, data_len);
if (async->complete)
async->complete(efx, async->cookie, rc, outbuf,
min(async->outlen, data_len));
kfree(async); kfree(async);
efx_mcdi_release(mcdi); efx_mcdi_release(mcdi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment