diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-03-12 19:43:09 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-03-19 19:08:29 +0100 |
commit | c9cb135bc604ad6e457e06c19e0857c9cd0eef7f (patch) | |
tree | e0a5d3cd420cd4a8d20872bfd2106534865e4c8f /tools/perf/scripts/python/stackcollapse.py | |
parent | acf10a8c0b3a36d5ff35f91585e9755ea0b62ac3 (diff) | |
download | linux-c9cb135bc604ad6e457e06c19e0857c9cd0eef7f.tar.gz linux-c9cb135bc604ad6e457e06c19e0857c9cd0eef7f.tar.bz2 linux-c9cb135bc604ad6e457e06c19e0857c9cd0eef7f.zip |
net: stmmac: dwc-qos-eth: use devm_kzalloc() for AXI data
Everywhere else in the driver uses devm_kzalloc() when allocating the
AXI data, so there is no kfree() of this structure. However,
dwc-qos-eth uses kzalloc(), which leads to this memory being leaked.
Switch to use devm_kzalloc().
Fixes: d8256121a91a ("stmmac: adding new glue driver dwmac-dwc-qos-eth")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1tsRyv-0064nU-O9@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions