Re: [net-next 11/17] ice: Fix resource leak on early exit from function

2020-05-25 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.6.14, v5.4.42, v4.19.124, v4.14.181, v4.9.224, v4.4.224. v5.6.14: Build OK! v5.4

[net-next 11/17] ice: Fix resource leak on early exit from function

2020-05-21 Thread Jeff Kirsher
From: Eric Joyner Memory allocated in the ice_add_prof_id_vsig() function wasn't being properly freed if an error occurred inside the for-loop in the function. In particular, 'p' wasn't being freed if an error occurred before it was added to the resource list at the end of the for-loop. CC: sta