]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: mmc_spi: Fix NULL pointer dereference in mmc_spi_bind()
authorBin Meng <bmeng.cn@gmail.com>
Sat, 31 Aug 2019 04:15:33 +0000 (21:15 -0700)
committerPeng Fan <peng.fan@nxp.com>
Thu, 5 Sep 2019 07:29:29 +0000 (15:29 +0800)
commitd3302395e7b3deef1d7bb3eeb0c904e97ad7937d
tree879f3d5f0d439692632391baf48bc9822d045084
parentc077c057a49d47cdc029cce654e9895ea987fce5
dm: mmc_spi: Fix NULL pointer dereference in mmc_spi_bind()

The mmc_spi driver's priv is not available in its bind phase(). Use
platdata instead.

Fixes: 05e35d429745 ("mmc: mmc_spi: Re-write driver using DM framework")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mmc_spi.c