mci: dove: fix dereference of nullable pointer
data->{blocks, blocksize, flags} are all used outside of the if clause
checking whether data is not NULL.
Fix this to avoid dereferencing null pointers.

Fixes: bdcf89d274 ("mci: add Marvell Dove SDHCI driver")
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 40b93fc commit 8a774977bf4fc7b9f1f4fa175cdefb0a52894649
@Ahmad Fatoum Ahmad Fatoum authored on 20 Nov 2019
Sascha Hauer committed on 25 Nov 2019
Showing 1 changed file
View
drivers/mci/dove-sdhci.c