mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
i40e: fix memory leak
When we allocate memory, we must free it. It's simple courtesy. Change-ID: Id007294096fb53344f1a8b9a0f78eddf9853c5d6 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
d8ec986464
commit
b7d2cd951f
@ -2318,6 +2318,7 @@ err:
|
||||
/* send the response back to the VF */
|
||||
aq_ret = i40e_vc_send_msg_to_vf(vf, I40E_VIRTCHNL_OP_GET_RSS_HENA_CAPS,
|
||||
aq_ret, (u8 *)vrh, len);
|
||||
kfree(vrh);
|
||||
return aq_ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user