diff options
author | Michael Buesch <m@bues.ch> | 2021-05-15 22:02:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 17:15:42 +0300 |
commit | 0036a22e5ed52cc9ff101b21db7b235b99586325 (patch) | |
tree | 6fcfa15d1081a72af812c63cbc84c74886c046d1 /drivers/net/wireless | |
parent | 15e84bbbea55c977db1524122d4c0272bf732f3c (diff) | |
download | linux-0036a22e5ed52cc9ff101b21db7b235b99586325.tar.xz |
ssb: sdio: Don't overwrite const buffer if block_write fails
commit 47ec636f7a25aa2549e198c48ecb6b1c25d05456 upstream.
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: Michael Büsch <m@bues.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210515210252.318be2ba@wiggum
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless')
0 files changed, 0 insertions, 0 deletions