ssb: Fix error routine when fallback SPROM fails
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 5 Nov 2016 19:08:57 +0000 (14:08 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Nov 2016 06:49:04 +0000 (08:49 +0200)
commit8052d7245b6089992343c80b38b14dbbd8354651
treec0294c8f8cccbe59b594d048a78bacd0193f026a
parente49656147359411fb7529a211e852e587e5970dd
ssb: Fix error routine when fallback SPROM fails

When there is a CRC error in the SPROM read from the device, the code
attempts to handle a fallback SPROM. When this also fails, the driver
returns zero rather than an error code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/ssb/pci.c