mailbox: scpi: Free the mailbox channel when we fail to queue a message.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 24 Jul 2014 10:14:21 +0000 (11:14 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 24 Jul 2014 11:24:31 +0000 (12:24 +0100)
commit0e1bf571a6060210eef9bad13e5a564512efc8e7
treeedc8a1f86b26c179eac5ae0a81ddb70905f7aaba
parent58134d3cbe97e894b43ac5039cfb50b3f7a1b862
mailbox: scpi: Free the mailbox channel when we fail to queue a message.

When sending an SCPI command we aquire a channel and queue the
message in the mailbox. If the queuing failed we were not releasing
the channel hence preventing everyone else from using it.

Signed-off-by: Punit Agrawal <Punit.Agrawal@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/mailbox/scpi_protocol.c