mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02:00
device: fix leak in sriov_deactivate_cb()
On master this code was refactored and thereby the leak was fixed. Instead of backporting that, do an original patch for nm-1-24 to fix only the leak. Fixes:121c58f0c4('core: set number of SR-IOV VFs asynchronously') (cherry picked from commita28d4a305a)
This commit is contained in:
parent
739417ab85
commit
2e0cb189d3
1 changed files with 2 additions and 1 deletions
|
|
@ -15583,10 +15583,11 @@ sriov_deactivate_cb (GError *error, gpointer user_data)
|
||||||
NMDevice *self;
|
NMDevice *self;
|
||||||
gpointer reason;
|
gpointer reason;
|
||||||
|
|
||||||
|
nm_utils_user_data_unpack (user_data, &self, &reason);
|
||||||
|
|
||||||
if (nm_utils_error_is_cancelled (error, TRUE))
|
if (nm_utils_error_is_cancelled (error, TRUE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
nm_utils_user_data_unpack (user_data, &self, &reason);
|
|
||||||
deactivate_ready (self, (NMDeviceStateReason) reason);
|
deactivate_ready (self, (NMDeviceStateReason) reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue