projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d85c8a6
)
i2c-mux-pinctrl: Fix probe error path
author
Guenter Roeck
<linux@roeck-us.net>
Tue, 13 Nov 2012 21:27:19 +0000
(22:27 +0100)
committer
Jean Delvare
<khali@endymion.delvare>
Tue, 13 Nov 2012 21:27:19 +0000
(22:27 +0100)
When allocating the memory for i2c busses, the code checked the wrong
variable and thus never detected if there was a memory error.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/muxes/i2c-mux-pinctrl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/muxes/i2c-mux-pinctrl.c
b/drivers/i2c/muxes/i2c-mux-pinctrl.c
index 5f097f309b9f9e92c59a5525db04283ab699fc74..7fa5b24b16db9a4a1c4c1a360f16dd01b018a215 100644
(file)
--- a/
drivers/i2c/muxes/i2c-mux-pinctrl.c
+++ b/
drivers/i2c/muxes/i2c-mux-pinctrl.c
@@
-169,7
+169,7
@@
static int __devinit i2c_mux_pinctrl_probe(struct platform_device *pdev)
mux->busses = devm_kzalloc(&pdev->dev,
sizeof(mux->busses) * mux->pdata->bus_count,
GFP_KERNEL);
- if (!mux->
stat
es) {
+ if (!mux->
buss
es) {
dev_err(&pdev->dev, "Cannot allocate busses\n");
ret = -ENOMEM;
goto err;