]> git.ipfire.org Git - thirdparty/linux.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)
committerDinh Nguyen <dinguyen@kernel.org>
Thu, 13 Nov 2025 12:32:58 +0000 (06:32 -0600)
commit85f96cbbbc67b59652b2c1ec394b8ddc0ddf1b0b
treee3800f2188583ee5fb3d1d94024bf488c6e95945
parent4f49088c162579a4ed049c555fe0cd188fd928c4
firmware: stratix10-svc: Add mutex in stratix10 memory management

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>
drivers/firmware/stratix10-svc.c