]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: aspeed: lpc-snoop: Cleanup resources in stack-order
authorAndrew Jeffery <andrew@codeconstruct.com.au>
Mon, 16 Jun 2025 13:13:38 +0000 (22:43 +0930)
committerAndrew Jeffery <andrew@codeconstruct.com.au>
Wed, 2 Jul 2025 01:35:20 +0000 (11:05 +0930)
commit8481d59be606d2338dbfe14b04cdbd1a3402c150
tree330514213a8a74c39bae9c6de989210116c3e54e
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
soc: aspeed: lpc-snoop: Cleanup resources in stack-order

Free the kfifo after unregistering the miscdev in
aspeed_lpc_disable_snoop() as the kfifo is initialised before the
miscdev in aspeed_lpc_enable_snoop().

Fixes: 3772e5da4454 ("drivers/misc: Aspeed LPC snoop output using misc chardev")
Cc: stable@vger.kernel.org
Cc: Jean Delvare <jdelvare@suse.de>
Acked-by: Jean Delvare <jdelvare@suse.de>
Link: https://patch.msgid.link/20250616-aspeed-lpc-snoop-fixes-v2-1-3cdd59c934d3@codeconstruct.com.au
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
drivers/soc/aspeed/aspeed-lpc-snoop.c