linux/drivers/soc/apple
Johan Hovold eb0df8cf03 soc: apple: mailbox: fix device leak on lookup
commit f401671e90 upstream.

Make sure to drop the reference taken to the mbox platform device when
looking up its driver data.

Note that holding a reference to a device does not prevent its driver
data from going away so there is no point in keeping the reference.

Fixes: 6e1457fcad ("soc: apple: mailbox: Add ASC/M3 mailbox driver")
Cc: stable@vger.kernel.org	# 6.8
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Sven Peter <sven@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-08 10:14:29 +01:00
..
Kconfig soc: apple: mailbox: Rename config symbol to APPLE_MAILBOX 2023-11-23 19:10:39 +09:00
mailbox.c soc: apple: mailbox: fix device leak on lookup 2026-01-08 10:14:29 +01:00
mailbox.h soc: apple: mailbox: Add ASC/M3 mailbox driver 2023-11-23 19:10:15 +09:00
Makefile soc: apple: mailbox: Rename config symbol to APPLE_MAILBOX 2023-11-23 19:10:39 +09:00
rtkit-crashlog.c soc: apple: rtkit: Do not copy the reg state structure to the stack 2023-02-13 20:20:34 +01:00
rtkit-internal.h soc: apple: rtkit: Implement OSLog buffers properly 2025-05-29 11:02:34 +02:00
rtkit.c soc: apple: rtkit: Implement OSLog buffers properly 2025-05-29 11:02:34 +02:00
sart.c soc: apple: sart: Stop casting function pointer signatures 2022-11-28 20:34:09 +09:00