Commit e0bf54c93a15c365a37cfc4fe0137f5bc012d1b9

Authored by Ben Hutchings
Committed by David S. Miller
1 parent b8afe64161

sfc: Fix sign of efx_mcdi_poll_reboot() error in efx_mcdi_poll()

efx_mcdi_poll() uses positive error numbers, matching the MCDI
protocol.  It must negate the result of efx_mcdi_poll_reboot() which
returns the usual negative error numbers.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/net/sfc/mcdi.c
... ... @@ -127,7 +127,7 @@
127 127 efx_dword_t reg;
128 128  
129 129 /* Check for a reboot atomically with respect to efx_mcdi_copyout() */
130   - rc = efx_mcdi_poll_reboot(efx);
  130 + rc = -efx_mcdi_poll_reboot(efx);
131 131 if (rc)
132 132 goto out;
133 133