]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: usdhi6rol0: handle NULL data in timeout
authorRabin Vincent <rabin.vincent@axis.com>
Fri, 27 Nov 2015 11:59:11 +0000 (12:59 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:18 +0000 (11:32 +0100)
commit773a58f8ce3f942945abce1b2523d63b638a4585
tree66f4f2a7224de468b916bd9d53eca0424b963475
parente4d116668558ee8c105cae22248f826c87790b9c
mmc: usdhi6rol0: handle NULL data in timeout

Commit 3ca89631d03c ("mmc: usdhi6rol0: fix NULL pointer deref in debug
print") fixed one NULL pointer dereference but unfortunately introduced
another.  "data" may be NULL if this is a command timeout for a command
without any data, so we should only use it if we're actually waiting for
data.

Fixes: 3ca89631d03c ("mmc: usdhi6rol0: fix NULL pointer deref in debug print")
Cc: stable@vger.kernel.org # v4.3
Signed-off-by: Rabin Vincent <rabin.vincent@axis.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/usdhi6rol0.c