]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: usdhi6rol0: fix NULL pointer deref in debug print
authorRabin Vincent <rabin.vincent@axis.com>
Wed, 19 Aug 2015 13:41:35 +0000 (15:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Aug 2015 12:50:55 +0000 (14:50 +0200)
commitbb08a7d489bd22a9b6e489f8c8449b0bc92594d0
tree6c2af778c7119fa85251d2fce24dcdda1504a319
parent767264725d6c0c8e2a42f14ded88c8f05fec5863
mmc: usdhi6rol0: fix NULL pointer deref in debug print

host->sg is only set when we're transferring multiple blocks.  Check for
its availibility before dereferencing it in the timeout work debug
print.

Signed-off-by: Rabin Vincent <rabin.vincent@axis.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/usdhi6rol0.c