mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
UPSTREAM: firmware: arm_ffa: Fix uuid parameter to ffa_partition_probe
While we pass uuid_null intentionally to ffa_partition_probe in ffa_setup_partitions to get the count of the partitions, it must not be uuid_null in ffa_partition_info_get which is used by the ffa_drivers to fetch the specific partition info passing the UUID of the partition. Fix ffa_partition_info_get by passing the received uuid down to ffa_partition_probe so that the correct partition information is fetched. Bug: 254441685 Link: https://lore.kernel.org/r/20220429113946.2087145-1-sudeep.holla@arm.com Fixes:d0c0bce831("firmware: arm_ffa: Setup in-kernel users of FFA partitions") Reported-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> (cherry picked from commitf3c45c045e) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: I18fea5b1e8f2d7159639a8e967784f06779ba00c
This commit is contained in:
committed by
Treehugger Robot
parent
dba02a021a
commit
d57c415ab0
@@ -501,7 +501,7 @@ static int ffa_partition_info_get(const char *uuid_str,
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
count = ffa_partition_probe(&uuid_null, &pbuf);
|
||||
count = ffa_partition_probe(&uuid, &pbuf);
|
||||
if (count <= 0)
|
||||
return -ENOENT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user