Re: [PATCH -next] mmc: wmt-sdmmc: fix potential NULL pointer dereference in wmt_mci_probe()

2012-11-28 Thread Tony Prisk
On Wed, 2012-11-28 at 21:31 -0500, Wei Yongjun wrote: > From: Wei Yongjun > > The dereference to 'of_id' should be moved below the NULL test. > > Signed-off-by: Wei Yongjun > --- > drivers/mmc/host/wmt-sdmmc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/

[PATCH -next] mmc: wmt-sdmmc: fix potential NULL pointer dereference in wmt_mci_probe()

2012-11-28 Thread Wei Yongjun
From: Wei Yongjun The dereference to 'of_id' should be moved below the NULL test. Signed-off-by: Wei Yongjun --- drivers/mmc/host/wmt-sdmmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index 5ba4605..f737b0c