OSDN Git Service

mmc: wmt-sdmmc: Fix NULL pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 25 Feb 2014 09:48:20 +0000 (15:18 +0530)
committerChris Ball <chris@printf.net>
Tue, 25 Feb 2014 20:42:33 +0000 (15:42 -0500)
commit43aaa50f17c38c16cce2a9a3e73909b7937892a3
tree7fd690f9f67a2bbcc072c692cf582b84862d2376
parentc4c7fb19bbf1129da1c3b9fcad9713bd79f3207c
mmc: wmt-sdmmc: Fix NULL pointer dereference

'of_id' is dereferenced before NULL pointer check. Move it to
after the check.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/wmt-sdmmc.c