]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mailbox: mailbox-test: don't free the reused channel
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 17 Apr 2026 07:42:34 +0000 (09:42 +0200)
committerJassi Brar <jassisinghbrar@gmail.com>
Sat, 18 Apr 2026 18:10:14 +0000 (13:10 -0500)
commit88ebadbf0deefdaccdab868b44ff70a0a257f473
tree0c57a0cb14c602df35695bc9878916de3e8da691
parentdd9aa1f269000d679f4ec12b32abacfc8d921413
mailbox: mailbox-test: don't free the reused channel

The RX channel can be aliased to the TX channel if it has a different
MMIO. This special case needs to be handled when freeing the channels
otherwise a double-free occurs.

Fixes: 8ea4484d0c2b ("mailbox: Add generic mechanism for testing Mailbox Controllers")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/mailbox-test.c