summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2020-01-15 09:50:50 +0100
committerJason Gunthorpe <jgg@mellanox.com>2020-01-16 21:13:22 +0100
commiteaad647e5cc27f7b46a27f3b85b14c4c8a64bffa (patch)
treea9c0192b42c6e6f0304131fbf193f9aaee208225 /sound/soc
parentIB/mlx5: Expose RoCE accelerator counters (diff)
downloadlinux-eaad647e5cc27f7b46a27f3b85b14c4c8a64bffa.tar.xz
linux-eaad647e5cc27f7b46a27f3b85b14c4c8a64bffa.zip
IB/mlx4: Fix memory leak in add_gid error flow
In procedure mlx4_ib_add_gid(), if the driver is unable to update the FW gid table, there is a memory leak in the driver's copy of the gid table: the gid entry's context buffer is not freed. If such an error occurs, free the entry's context buffer, and mark the entry as available (by setting its context pointer to NULL). Fixes: e26be1bfef81 ("IB/mlx4: Implement ib_device callbacks") Link: https://lore.kernel.org/r/20200115085050.73746-1-leon@kernel.org Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Reviewed-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'sound/soc')
0 files changed, 0 insertions, 0 deletions