Skip to content

Commit c67c233

Browse files
committed
firmware: arm_ffa: Skip the first/partition ID when parsing vCPU list
The FF-A notification id list received in response to the call FFA_NOTIFICATION_INFO_GET is encoded as: partition ID followed by 0 or more vCPU ID. The count includes all of them. Fix the issue by skipping the first/partition ID so that only the list of vCPU IDs are processed correctly for a given partition ID. The first/ partition ID is read before the start of the loop. Fixes: 3522be4 ("firmware: arm_ffa: Implement the NOTIFICATION_INFO_GET interface") Reported-by: Andrei Homescu <[email protected]> Message-Id: <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent 3e282f4 commit c67c233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/arm_ffa/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ static void ffa_notification_info_get(void)
10121012
}
10131013

10141014
/* Per vCPU Notification */
1015-
for (idx = 0; idx < ids_count[list]; idx++) {
1015+
for (idx = 1; idx < ids_count[list]; idx++) {
10161016
if (ids_processed >= max_ids - 1)
10171017
break;
10181018

0 commit comments

Comments
 (0)