projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b432fc2
)
mfd: 88pm805: Fix potential NULL pdata dereference
author
Chao Xie
<chao.xie@marvell.com>
Mon, 19 Aug 2013 01:27:55 +0000
(21:27 -0400)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 2 Sep 2013 09:00:16 +0000
(11:00 +0200)
User pass platform data to device, and platform data may be
NULL. Add the check for pdata.
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm805.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/88pm805.c
b/drivers/mfd/88pm805.c
index 0686cdb06b3e7ef5f0a29efc3ba7035368811240..8a5b6ffb5afb6fbedbd8a1364a879890a6ebfba5 100644
(file)
--- a/
drivers/mfd/88pm805.c
+++ b/
drivers/mfd/88pm805.c
@@
-243,7
+243,7
@@
static int pm805_probe(struct i2c_client *client,
goto err_805_init;
}
- if (pdata->plat_config)
+ if (pdata
&& pdata
->plat_config)
pdata->plat_config(chip, pdata);
err_805_init: