]> git.baikalelectronics.ru Git - kernel.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)
commit78e6f6efa7c4e7f7ab6c5b0899379fb29927672e
tree6c2af778c7119fa85251d2fce24dcdda1504a319
parent030fa98aac282fc9b2761f3145d1aa13de70e259
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