]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: Fix NULL pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 25 Feb 2014 09:48:28 +0000 (15:18 +0530)
committerChris Ball <chris@printf.net>
Tue, 25 Feb 2014 20:43:27 +0000 (15:43 -0500)
commit956cc12d0340cfad22a20569bf872c24d6ebbd9a
tree44445e683c5021e806fa9c4b68fb07e26a2f4d41
parent7d868434e40ebc1d47af2270d4aa5e6731a6d22b
mmc: dw_mmc: Fix NULL pointer dereference

If mrq->sbc is not NULL but data->stop happens to be NULL,
it will lead to NULL pointer dereferencing. Avoid this by
having a NULL check for data->stop.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/dw_mmc.c