]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Fix a memory leak in an error handling path in 'ice_pf_dcb_cfg()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 20 Jun 2021 13:28:06 +0000 (15:28 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 25 Jun 2021 18:30:50 +0000 (11:30 -0700)
commit2a4fdffbd79f774d8636b605fc0cce344603737b
tree02e13ab3063bf1317a007140ba092462a4738529
parent95439182172ef200f5467b030f6e03d5aaa78bdd
ice: Fix a memory leak in an error handling path in 'ice_pf_dcb_cfg()'

If this 'kzalloc()' fails we must free some resources as in all the other
error handling paths of this function.

Fixes: f7570832e233 ("ice: Implement iidc operations")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_lib.c