Skip to content
Commit 47ec636f authored by Michael Buesch's avatar Michael Buesch Committed by Kalle Valo
Browse files

ssb: sdio: Don't overwrite const buffer if block_write fails



It doesn't make sense to clobber the const driver-side buffer, if a
write-to-device attempt failed. All other SSB variants (PCI, PCMCIA and SoC)
also don't corrupt the buffer on any failure in block_write.
Therefore, remove this memset from the SDIO variant.

Signed-off-by: default avatarMichael Büsch <m@bues.ch>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210515210252.318be2ba@wiggum
parent 77a0989b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment