aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_gem.c
diff options
context:
space:
mode:
authorDuoming Zhou <[email protected]>2022-02-03 15:08:11 +0000
committerJakub Kicinski <[email protected]>2022-02-03 22:20:36 +0000
commit87563a043cef044fed5db7967a75741cc16ad2b1 (patch)
tree4afe345736b9d1e946ddd4ad5fdbc349b046900f /drivers/gpu/drm/lima/lima_gem.c
parentnet: stmmac: ensure PTP time register reads are consistent (diff)
downloadkernel-87563a043cef044fed5db7967a75741cc16ad2b1.tar.gz
kernel-87563a043cef044fed5db7967a75741cc16ad2b1.zip
ax25: fix reference count leaks of ax25_dev
The previous commit d01ffb9eee4a ("ax25: add refcount in ax25_dev to avoid UAF bugs") introduces refcount into ax25_dev, but there are reference leak paths in ax25_ctl_ioctl(), ax25_fwd_ioctl(), ax25_rt_add(), ax25_rt_del() and ax25_rt_opt(). This patch uses ax25_dev_put() and adjusts the position of ax25_addr_ax25dev() to fix reference cout leaks of ax25_dev. Fixes: d01ffb9eee4a ("ax25: add refcount in ax25_dev to avoid UAF bugs") Signed-off-by: Duoming Zhou <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_gem.c')
0 files changed, 0 insertions, 0 deletions