summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorEdwin Peer <edwin.peer@broadcom.com>2020-03-22 23:40:02 +0300
committerDavid S. Miller <davem@davemloft.net>2020-03-24 07:42:48 +0300
commit62d4073e86e62e316bea2c53e77db10418fd5dd7 (patch)
tree575225b576777e853067e709cadfd8adf8008043 /tools/testing
parenta24ec3220f369aa0b94c863b6b310685a727151c (diff)
downloadlinux-62d4073e86e62e316bea2c53e77db10418fd5dd7.tar.xz
bnxt_en: fix memory leaks in bnxt_dcbnl_ieee_getets()
The allocated ieee_ets structure goes out of scope without being freed, leaking memory. Appropriate result codes should be returned so that callers do not rely on invalid data passed by reference. Also cache the ETS config retrieved from the device so that it doesn't need to be freed. The balance of the code was clearly written with the intent of having the results of querying the hardware cached in the device structure. The commensurate store was evidently missed though. Fixes: 7df4ae9fe855 ("bnxt_en: Implement DCBNL to support host-based DCBX.") Signed-off-by: Edwin Peer <edwin.peer@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions