summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorBibek Basu <bibek.basu@stericsson.com>2011-08-17 09:11:17 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 16:00:07 +0200
commit8040d3e8b67e0a550e458c6991d30e69277be426 (patch)
treebf34b382f72972cb499b84b358fdd72bfd93eefe /drivers/misc
parent907a9707fd166bd2b134e3ef830beb34c01ce97f (diff)
ux500_ing05160_mailboxLD_0.1 : coverity fix in ab5500 core and mailbox
commit id : I57e11eeb : U5500 : coverity fix in ab5500 core and mailbox Build and boot test only done for 8500 config Booting will only happend properly if used Initramfs Change-Id: If4f6c8d50499d67128694a91517f7aae8c152653 Signed-off-by: Bibek Basu <bibek.basu@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/28898
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mbox_channels-db5500.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/mbox_channels-db5500.c b/drivers/misc/mbox_channels-db5500.c
index 1fb883f3296..0d0e16ebb74 100644
--- a/drivers/misc/mbox_channels-db5500.c
+++ b/drivers/misc/mbox_channels-db5500.c
@@ -668,12 +668,13 @@ int mbox_channel_register(u16 channel, mbox_channel_cb_t *cb, void *priv)
spin_lock(&mbox_unit->rx_lock);
list_del(&rx_chan->list);
spin_unlock(&mbox_unit->rx_lock);
+ mutex_unlock(&rx_chan->lock);
kfree(rx_chan);
} else {
rx_chan->seq_number++;
rx_chan->state = MBOX_OPEN;
+ mutex_unlock(&rx_chan->lock);
}
- mutex_unlock(&rx_chan->lock);
exit:
return res;
}
@@ -1036,7 +1037,6 @@ static int mboxtest_prepare(struct mboxtest_data *mboxtest)
registration_done = true;
return 0;
err:
- kfree(mboxtest);
return err;
}