]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mailbox: Not protect module_put with spin_lock_irqsave
authorPeng Fan <peng.fan@nxp.com>
Fri, 11 Apr 2025 13:14:10 +0000 (21:14 +0800)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 26 May 2025 21:23:39 +0000 (16:23 -0500)
commitdddbd233e67e792bb0a3f9694a4707e6be29b2c6
tree5a10fdb9b716fea8963016be5d3d42f08944b80a
parent8da4988b6e645f3eaa590ea16f433583364fd09c
mailbox: Not protect module_put with spin_lock_irqsave

&chan->lock is not supposed to protect 'chan->mbox'.
And in __mbox_bind_client, try_module_get is also not protected
by &chan->lock. So move module_put out of the lock protected
region.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/mailbox.c