Skip to contentSkip to conversation

i2c: xgene-slimpro: Fix missing mbox_free_channel call in probe error path

PATCH Applied Axel Lin 2 participants 3 messages Jun 30, 2015 – Jul 9, 2015 1 message not in the archive I2C subsystem host drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 i2c: xgene-slimpro: Fix missing mbox_free_channel call in probe error path

Free requested mailbox channel before return error.

---
 drivers/i2c/busses/i2c-xgene-slimpro.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-xgene-slimpro.c +1 -0
index dcca707..1c9cb65a 100644
@@ -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;
 	}
 
Signature · 1 line
2.1.0

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 6 lines · Wolfram Sang
Quoted 3 lines · Axel Lin

Free requested mailbox channel before return error.

Applied to for-next, thanks!

for-current, I mean. Sorry for the noise.