summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2014-11-28 13:50:26 +0100
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-11-28 13:51:07 +0100
commit3a1f6fbb8a4ef02d9781a0b79aa239cc74b7603a (patch)
treef678ca725a4593bc18dfac70585abceaab57e4d3 /drivers
parentd5a3ff12ee04d1a7c2ad243bf64b74e59265e010 (diff)
downloadlinux-3.10-3a1f6fbb8a4ef02d9781a0b79aa239cc74b7603a.tar.gz
linux-3.10-3a1f6fbb8a4ef02d9781a0b79aa239cc74b7603a.tar.bz2
linux-3.10-3a1f6fbb8a4ef02d9781a0b79aa239cc74b7603a.zip
mfd: sec-core: fix potential NULL ptr dereference
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I26aec009f6b61c077c6de1a96cca7a5132851dbf
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/sec-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 80f11af4ef1..322c7e6a05a 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -385,7 +385,7 @@ static int sec_pmic_probe(struct i2c_client *i2c,
if (ret)
goto err;
- device_init_wakeup(sec_pmic->dev, pdata->wakeup);
+ device_init_wakeup(sec_pmic->dev, sec_pdata->wakeup);
return ret;