* [PATCH] mfd: s5m: Fix possible null pointer dereference
@ 2012-01-16 0:08 jhbird.choi
2012-02-20 15:18 ` Samuel Ortiz
0 siblings, 1 reply; 2+ messages in thread
From: jhbird.choi @ 2012-01-16 0:08 UTC (permalink / raw)
To: linux-kernel; +Cc: Samuel Ortiz, Sangbeom Kim, Mark Brown, Jonghwan Choi
From: Jonghwan Choi <jhbird.choi@samsung.com>
This patch checks for pdata to using it.
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
---
drivers/mfd/s5m-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mfd/s5m-core.c b/drivers/mfd/s5m-core.c
index e075c11..caadabe 100644
--- a/drivers/mfd/s5m-core.c
+++ b/drivers/mfd/s5m-core.c
@@ -105,7 +105,7 @@ static int s5m87xx_i2c_probe(struct i2c_client *i2c,
s5m87xx->rtc = i2c_new_dummy(i2c->adapter, RTC_I2C_ADDR);
i2c_set_clientdata(s5m87xx->rtc, s5m87xx);
- if (pdata->cfg_pmic_irq)
+ if (pdata && pdata->cfg_pmic_irq)
pdata->cfg_pmic_irq();
s5m_irq_init(s5m87xx);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mfd: s5m: Fix possible null pointer dereference
2012-01-16 0:08 [PATCH] mfd: s5m: Fix possible null pointer dereference jhbird.choi
@ 2012-02-20 15:18 ` Samuel Ortiz
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2012-02-20 15:18 UTC (permalink / raw)
To: jhbird.choi; +Cc: linux-kernel, Sangbeom Kim, Mark Brown
Hi Jonghwan,
On Mon, Jan 16, 2012 at 09:08:42AM +0900, jhbird.choi@samsung.com wrote:
> From: Jonghwan Choi <jhbird.choi@samsung.com>
>
> This patch checks for pdata to using it.
Thanks, I applied it.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-20 15:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-16 0:08 [PATCH] mfd: s5m: Fix possible null pointer dereference jhbird.choi
2012-02-20 15:18 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).