[PATCH v2 3/7] net/ice: fix DDP filename leak
Bruce Richardson
bruce.richardson at intel.com
Wed Nov 4 17:44:33 CET 2026
On Mon, Nov 02, 2026 at 08:10:33AM +0000, Anurag Mandal wrote:
> The DDP package filename given with the ddp_pkg_file devarg is
> duplicated with strdup() during devargs parsing, but only freed on
> close. It leaks when ice_dev_init() fails at or after devargs
> parsing, and when the devarg is given more than once.
>
> Free the previous string before storing a new one, and free it on all
> init error paths.
>
> Fixes: 9dd6dd1db834 ("net/ice: add option to choose DDP package file")
> Fixes: 603beeb970b5 ("net/ice: add safe mode devarg")
> Fixes: f9cf4f864150 ("net/ice: support device initialization")
> Cc: stable at dpdk.org
>
> Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
> ---
> drivers/net/intel/ice/ice_ethdev.c | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the stable
mailing list