mfd: asic3: Fix potential null pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 10 Jun 2014 10:00:34 +0000 (15:30 +0530)
committerLee Jones <lee.jones@linaro.org>
Wed, 9 Jul 2014 13:58:01 +0000 (14:58 +0100)
commit44b61a9f23dabf27303d32b4947f017f69ca90f6
treec6de8469cebdbe9a57dca4f53bf238e9423e050b
parent967580598f46997ce5eeeea812686f5220bb49de
mfd: asic3: Fix potential null pointer dereference

We previously assumed 'mem_sdio' could be null but it is
dereferenced in ioremap(). Add a check to avoid a potential
null pointer dereference error.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/asic3.c