diff options
| author | Christophe JAILLET <[email protected]> | 2022-06-13 20:53:50 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-06-15 02:16:36 +0000 |
| commit | d7dd6eccfbc95ac47a12396f84e7e1b361db654b (patch) | |
| tree | 44aa7475f0630d70e86ad7324e5040c6d960668d /net/unix/garbage.c | |
| parent | mlxsw: spectrum_cnt: Reorder counter pools (diff) | |
| download | kernel-d7dd6eccfbc95ac47a12396f84e7e1b361db654b.tar.gz kernel-d7dd6eccfbc95ac47a12396f84e7e1b361db654b.zip | |
net: bgmac: Fix an erroneous kfree() in bgmac_remove()
'bgmac' is part of a managed resource allocated with bgmac_alloc(). It
should not be freed explicitly.
Remove the erroneous kfree() from the .remove() function.
Fixes: 34a5102c3235 ("net: bgmac: allocate struct bgmac just once & don't copy it")
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/a026153108dd21239036a032b95c25b5cece253b.1655153616.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
