mmc: core: guard dereference of optional parameter
authortcharding <me@tobin.cc>
Wed, 15 Mar 2017 08:48:03 +0000 (19:48 +1100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:23 +0000 (21:41 +0200)
commit9b980d950e5bcdce6dbc15a9c00ff960beeea28b
tree258ea93d39f242f658c27dc0b4d022a1304502f8
parentce473d5b49d6ef76d35e6d00daa8c5a8fed85943
mmc: core: guard dereference of optional parameter

Various functions take as parameter an optional pointer. Pointer
should be guarded with non-NULL check before dereferencing.

Add non-NULL check before dereference of pointer.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio_io.c