]> 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:14:44 +0000 (10:14 +0100)
commite914da9be0619770d713f8d9c53d6745332df453
tree45977cce8c66c1ca728edbfd4b5f8e7775e40b0e
parent60dde0960e3ead8a9569f6c494d90d0232ac0983
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