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)
committerSasha Levin <alexander.levin@verizon.com>
Sun, 15 Jan 2017 14:49:49 +0000 (09:49 -0500)
commit76fa34bf3e9c30b3e838b87ab2530728774f0e0d
tree8ba97a973bcf020e9bb60c7fd340952a91975c91
parent14cd1eeed8c056e0821994b4ab67cb38db492255
ssb: Fix error routine when fallback SPROM fails

[ Upstream commit 8052d7245b6089992343c80b38b14dbbd8354651 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/ssb/pci.c