Skip to content

Commit

Permalink
i2c: xgene-slimpro: Fix missing mbox_free_channel call in probe error…
Browse files Browse the repository at this point in the history
… path

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>
  • Loading branch information
Axel Lin authored and Wolfram Sang committed Jul 9, 2015
1 parent fc0a1f0 commit 7249481
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-xgene-slimpro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7249481

Please sign in to comment.