]> git.hungrycats.org Git - linux/commit
mailbox: handle empty message in tx_tick
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 21 Mar 2017 11:30:16 +0000 (11:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 02:19:41 +0000 (19:19 -0700)
commit63c9c49c04a174b5cb05814ea3883afb6454f0d7
treeb00ba8ea4907a7d50f339595c9b81b56a69250f2
parent21ab579fbae675905fccfd08386663b561a7ff41
mailbox: handle empty message in tx_tick

commit cb710ab1d8a23f68ff8f45aedf3e552bb90e70de upstream.

We already check if the message is empty before calling the client
tx_done callback. Calling completion on a wait event is also invalid
if the message is empty.

This patch moves the existing empty message check earlier.

Fixes: 2b6d83e2b8b7 ("mailbox: Introduce framework for mailbox")
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mailbox/mailbox.c