Re: [Intel-wired-lan] [PATCH iwl-net v1 2/2] iavf: fix QoS capabilities memory leak
"Jagielski, Jedrzej" <[email protected]> Wed, 15 Jul 2026 07:24:45 +0000
| Newsgroups | org.osuosl.intel-wired-lan,org.kernel.vger.netdev,org.kernel.vger.stable |
|---|---|
| Message-ID | <PH0PR11MB5902F61778270611FDF6AEBDF0F82@PH0PR11MB5902.namprd11.prod.outlook.com> |
From: [email protected] <[email protected]> Sent: Wednesday, July 15, 2026 8:12 AM >From: Xuanqiang Luo <[email protected]> > >Commit 4c1a457cb8b0 ("iavf: add support to exchange qos capabilities") >allocates adapter->qos_caps during probe, but iavf_remove() does not >free it. This leaks the allocation whenever an iavf device is removed. > >Free adapter->qos_caps in iavf_remove(). > >Fixes: 4c1a457cb8b0 ("iavf: add support to exchange qos capabilities") >Cc: [email protected] >Signed-off-by: Xuanqiang Luo <[email protected]> Reviewed-by: Jedrzej Jagielski <[email protected]>