soc: qcom: smd: Reject send of too big packets
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Fri, 25 Sep 2015 01:37:18 +0000 (18:37 -0700)
committerAndy Gross <agross@codeaurora.org>
Wed, 14 Oct 2015 19:51:21 +0000 (14:51 -0500)
commita208ca98ff63e5c94d03810bc80fee9b02fe9972
tree7b7fe023c0b162a348d16eaf4e4aa22beb9655f7
parent24f60e3776e340136f8d822aff75fe06b78a315f
soc: qcom: smd: Reject send of too big packets

Attempting to find room for a packet that's bigger than the fifo will
never succeed and the calling process will be sleeping forever in the
loop, waiting for enough room. So fail early instead.

Reported-by: Courtney Cavin <courtney.cavin@sonymobile.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Reviewed-by: Andy Gross <agross@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/smd.c