Skip to content
Commit 5d59e28c authored by morten petersen's avatar morten petersen Committed by Greg Kroah-Hartman
Browse files

mailbox: handle failed named mailbox channel request

[ Upstream commit 25777e57

 ]

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: default avatarMorten Borup Petersen <morten_bp@live.dk>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2140a6b0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment