# Re: ssb: sdio: Don't overwrite const buffer if block\_write fails

- From: Kalle Valo \<hidden\>
- Date: 2021-06-15 10:11:39 
- List: linux-wireless
- Page: https://ratatoskr.run/linux-wireless/2021/06/15767481
- Thread: https://ratatoskr.run/linux-wireless/2021/05/15767165/t.md

```text
Michael Büsch [ref] wrote:

> 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: <redacted>

Patch applied to wireless-drivers-next.git, thanks.

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

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20210515210252.318be2ba@wiggum/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

```
