summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-09-27 17:37:28 -0500
committerSaeed Mahameed <saeedm@mellanox.com>2019-10-18 12:11:55 -0700
commitc7ed6d0183d5ea9bc31bcaeeba4070bd62546471 (patch)
treebd5654f3c40669801442c18966b2bc9bed7be91c /net
parentc8c2a057fdc7de1cd16f4baa51425b932a42eb39 (diff)
downloadlinux-c7ed6d0183d5ea9bc31bcaeeba4070bd62546471.tar.bz2
net/mlx5: fix memory leak in mlx5_fw_fatal_reporter_dump
In mlx5_fw_fatal_reporter_dump if mlx5_crdump_collect fails the allocated memory for cr_data must be released otherwise there will be memory leak. To fix this, this commit changes the return instruction into goto error handling. Fixes: 9b1f29823605 ("net/mlx5: Add support for FW fatal reporter dump") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions