projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc0a1f0
)
i2c: xgene-slimpro: Fix missing mbox_free_channel call in probe error path
author
Axel Lin
<axel.lin@ingics.com>
Tue, 30 Jun 2015 03:08:46 +0000
(11:08 +0800)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 9 Jul 2015 20:13:10 +0000
(22:13 +0200)
Free requested mailbox channel before return error.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xgene-slimpro.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-xgene-slimpro.c
b/drivers/i2c/busses/i2c-xgene-slimpro.c
index dcca7076231eda0d458916963d6f61eaf7ebfacb..1c9cb65ac4cf8aeb83becaec867f9a34f28b5a1e 100644
(file)
--- a/
drivers/i2c/busses/i2c-xgene-slimpro.c
+++ b/
drivers/i2c/busses/i2c-xgene-slimpro.c
@@
-419,6
+419,7
@@
static int xgene_slimpro_i2c_probe(struct platform_device *pdev)
rc = i2c_add_adapter(adapter);
if (rc) {
dev_err(&pdev->dev, "Adapter registeration failed\n");
+ mbox_free_channel(ctx->mbox_chan);
return rc;
}