summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFugang Duan <fugang.duan@nxp.com>2021-05-12 05:43:59 +0300
committerDavid S. Miller <davem@davemloft.net>2021-05-13 00:01:50 +0300
commit619fee9eb13b5d29e4267cb394645608088c28a8 (patch)
tree388b92d947a8a7d161bbe727b8247d8b68e1da79 /tools/perf/scripts/python
parent171c3b151118a2fe0fc1e2a9d1b5a1570cfe82d2 (diff)
downloadlinux-619fee9eb13b5d29e4267cb394645608088c28a8.tar.xz
net: fec: fix the potential memory leak in fec_enet_init()
If the memory allocated for cbd_base is failed, it should free the memory allocated for the queues, otherwise it causes memory leak. And if the memory allocated for the queues is failed, it can return error directly. Fixes: 59d0f7465644 ("net: fec: init multi queue date structure") Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions