]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
firmware: arm_scmi: Fix device node validation for mailbox transport
authorCristian Marussi <cristian.marussi@arm.com>
Tue, 7 Mar 2023 16:23:24 +0000 (16:23 +0000)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:40 +0000 (13:33 +0200)
commitadbb6b0685d805bccdf150016e7b061eda87c2c3
tree3d85594afca0a58dc791af38aef99b13c8b17851
parentc30d720085b89c9fa8ec6f4a286b6deadeb7bdbb
firmware: arm_scmi: Fix device node validation for mailbox transport

BugLink: https://bugs.launchpad.net/bugs/2016877
commit 2ab4f4018cb6b8010ca5002c3bdc37783b5d28c2 upstream.

When mailboxes are used as a transport it is possible to setup the SCMI
transport layer, depending on the underlying channels configuration, to use
one or two mailboxes, associated, respectively, to one or two, distinct,
shared memory areas: any other combination should be treated as invalid.

Add more strict checking of SCMI mailbox transport device node descriptors.

Fixes: 5c8a47a5a91d ("firmware: arm_scmi: Make scmi core independent of the transport type")
Cc: <stable@vger.kernel.org> # 4.19
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20230307162324.891866-1-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/firmware/arm_scmi/mailbox.c