]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93ee47cc11cd05dbcc56e4443f7227e2fb919f6d
treec6de8469cebdbe9a57dca4f53bf238e9423e050b
parent8682ef4e57f22eef3350c8eb88007ceab6957a1a
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