]> bbs.cooldavid.org Git - net-next-2.6.git/commit
sfc: Consistently report short MCDI responses as EIO
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 28 Apr 2010 09:27:14 +0000 (09:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 19:44:32 +0000 (12:44 -0700)
commit00bbb4a5344a5f81cf5d48e781e5c0df3e588d17
treeff144f1182235a0194d16904f39861cc923944db
parentb17424b0b29f94561e73ab9be34037746b378089
sfc: Consistently report short MCDI responses as EIO

In some cases failing functions were returning 0 which is obviously wrong.
In other cases they were returning inappropriate error codes.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/mcdi.c
drivers/net/sfc/mcdi_phy.c