]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: stratix10-svc: Add mutex in stratix10 memory management
authorMahesh Rao <mahesh.rao@altera.com>
Mon, 27 Oct 2025 14:54:40 +0000 (22:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:02 +0000 (10:17 +0100)
commit69a5f0fa6e559356b2f0933649e43d2bea928e56
tree5bac2980e7b8d995727ce371f4c692363f2f46a0
parentb693d48a6ed0cd09171103ad418e4a693203d6e4
firmware: stratix10-svc: Add mutex in stratix10 memory management

commit 85f96cbbbc67b59652b2c1ec394b8ddc0ddf1b0b upstream.

Add mutex lock to stratix10_svc_allocate_memory and
stratix10_svc_free_memory for thread safety. This prevents race
conditions and ensures proper synchronization during memory operations.
This is required for parallel communication with the Stratix10 service
channel.

Fixes: 7ca5ce896524f ("firmware: add Intel Stratix10 service layer driver")
Cc: stable@vger.kernel.org
Signed-off-by: Mahesh Rao <mahesh.rao@altera.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/stratix10-svc.c