Skip to content

Commit fbefe1c

Browse files
committed
Arm FF-A fix for v6.15 A fix that addresses incorrect release of Rx buffer ownership in the driver. The fix specificially avoids releasing Rx buffer ownership with FFA_RX_RELEASE if it wasn’t acquired during a FFA_PARTITION_INFO_GET call that only requested the partition count. This prevents unnecessary errors like FFA_RET_DENIED from firmware when buffers are not actually owned by the driver. * tag 'ffa-fix-6.15' of https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux: firmware: arm_ffa: Skip Rx buffer ownership release if not acquired
2 parents 94ddc14 + 4567bda commit fbefe1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/firmware/arm_ffa/driver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ __ffa_partition_info_get(u32 uuid0, u32 uuid1, u32 uuid2, u32 uuid3,
299299
import_uuid(&buf->uuid, (u8 *)&rx_buf->uuid);
300300
}
301301

302-
ffa_rx_release();
302+
if (!(flags & PARTITION_INFO_GET_RETURN_COUNT_ONLY))
303+
ffa_rx_release();
303304

304305
mutex_unlock(&drv_info->rx_lock);
305306

0 commit comments

Comments
 (0)