i2c: xgene-slimpro: Fix missing mbox_free_channel call in probe error path
PATCH 1/1 i2c: xgene-slimpro: Fix missing mbox_free_channel call in probe error path
Free requested mailbox channel before return error.
Signed-off-by Axel Lin <[email protected]>
--- drivers/i2c/busses/i2c-xgene-slimpro.c | 1 + 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-xgene-slimpro.c +1 -0
@@ -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]
Wolfram Sang
AppliedQuoted 3 lines · Axel Lin
Free requested mailbox channel before return error.
Signed-off-by Axel Lin <[email protected]>
Applied to for-next, thanks!
Quoted 6 lines · Wolfram Sang
Quoted 3 lines · Axel Lin
Free requested mailbox channel before return error.
Signed-off-by Axel Lin <[email protected]>Applied to for-next, thanks!
for-current, I mean. Sorry for the noise.