]> git.karo-electronics.de Git - karo-tx-linux.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)
commit05caee939f8d58d81e962071da85761e1e3a4c73
tree66f4f2a7224de468b916bd9d53eca0424b963475
parent60b71f607796f10ec8814312724759574398512b
mmc: usdhi6rol0: handle NULL data in timeout

Commit bb08a7d489bd ("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: bb08a7d489bd ("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