]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:22:53 +0000 (10:22 +0100)
commit446d6b57f6ec13b242dca9d9640ec0747622f52c
treec23d8fa2a75a4e706edfe985058dbe161960bf11
parente8f1f2052a6d64af80cf8ccfdb1bc405d49db4ce
mmc: usdhi6rol0: handle NULL data in timeout

BugLink: http://bugs.launchpad.net/bugs/1553179
commit 05caee939f8d58d81e962071da85761e1e3a4c73 upstream.

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")
Signed-off-by: Rabin Vincent <rabin.vincent@axis.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/mmc/host/usdhi6rol0.c