]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mailbox: use error ret code of of_parse_phandle_with_args()
authorTudor Ambarus <tudor.ambarus@linaro.org>
Mon, 24 Feb 2025 08:27:13 +0000 (08:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:12:25 +0000 (11:12 +0200)
commit3531ead00c8921daea94c2d3d0103f36ad387b32
treefcf13d9abca7b46b6fdfd3a745dbb2ecbcce5f8f
parent3b5d1316fab3cfcd0dd9ed4cafe077c4ef1b7a16
mailbox: use error ret code of of_parse_phandle_with_args()

[ Upstream commit 24fdd5074b205cfb0ef4cd0751a2d03031455929 ]

In case of error, of_parse_phandle_with_args() returns -EINVAL when the
passed index is negative, or -ENOENT when the index is for an empty
phandle. The mailbox core overwrote the error return code with a less
precise -ENODEV. Use the error returned code from
of_parse_phandle_with_args().

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mailbox/mailbox.c