platform/tests: fix infiniband_partition_delete() in fake platform

Fixes: 9c323261ea ('platform: use nm_utils_new_infiniband_name()')
(cherry picked from commit 6b28c2867b)
This commit is contained in:
Thomas Haller 2023-05-25 21:42:28 +02:00
parent c6977592c3
commit 26e789bdcf
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -795,7 +795,7 @@ static gboolean
infiniband_partition_delete(NMPlatform *platform, int parent, int p_key)
{
NMFakePlatformLink *parent_device;
gs_free char *name = NULL;
char name[IFNAMSIZ];
parent_device = link_get(platform, parent);
g_return_val_if_fail(parent_device != NULL, FALSE);