diff options
author | José Expósito <jose.exposito89@gmail.com> | 2021-12-09 12:05:40 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-09 08:09:28 -0800 |
commit | e8b1d7698038e76363859fb47ae0a262080646f5 (patch) | |
tree | 9811e3d300999a08b9c7860e0f9646dcff998289 /lib/test_bits.c | |
parent | 37ad4e2a77180841dffb1df64cdbd95541512d3d (diff) | |
download | linux-e8b1d7698038e76363859fb47ae0a262080646f5.tar.gz linux-e8b1d7698038e76363859fb47ae0a262080646f5.tar.bz2 linux-e8b1d7698038e76363859fb47ae0a262080646f5.zip |
net: dsa: felix: Fix memory leak in felix_setup_mmio_filtering
Avoid a memory leak if there is not a CPU port defined.
Fixes: 8d5f7954b7c8 ("net: dsa: felix: break at first CPU port during init and teardown")
Addresses-Coverity-ID: 1492897 ("Resource leak")
Addresses-Coverity-ID: 1492899 ("Resource leak")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20211209110538.11585-1-jose.exposito89@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/test_bits.c')
0 files changed, 0 insertions, 0 deletions