]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: handle failed named mailbox channel request
authormorten petersen <morten_bp@live.dk>
Mon, 8 Jul 2019 11:41:54 +0000 (11:41 +0000)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 11 Jul 2019 15:19:00 +0000 (10:19 -0500)
commitffeb1e62602e854fb5f18be47e4d3ab0f39bd50a
tree32c1907c42d49311df76a110e23111aeabcef2f6
parente7045bff4666a411329d5dacfab8f9151cfe2982
mailbox: handle failed named mailbox channel request

Previously, if mbox_request_channel_byname was used with a name
which did not exist in the "mbox-names" property of a mailbox
client, the mailbox corresponding to the last entry in the
"mbox-names" list would be incorrectly selected.
With this patch, -EINVAL is returned if the named mailbox is
not found.

Signed-off-by: Morten Borup Petersen <morten_bp@live.dk>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox.c