[PATCH] mci: Do not access ext_csd on SD cards
Sascha Hauer
s.hauer at pengutronix.de
Mon Mar 24 01:21:54 PDT 2025
On Mon, 24 Mar 2025 09:14:15 +0100, Sascha Hauer wrote:
> SD cards do not have a ext_csd so accessing it on an SD card results in
> a NULL pointer derefence. Move the production year check to
> mci_mmc_decode_cid() which is executed for MMC devices only. While at
> it do not access ext_csd directly. We have already populated
> mci->version, so use this to check for the MMC versions which need the
> production year adjustment.
>
> [...]
Applied, thanks!
[1/1] mci: Do not access ext_csd on SD cards
https://git.pengutronix.de/cgit/barebox/commit/?id=a0747210a87d (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list