diff options
author | Duoming Zhou <duoming@zju.edu.cn> | 2022-02-03 18:08:11 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-04 01:20:36 +0300 |
commit | 87563a043cef044fed5db7967a75741cc16ad2b1 (patch) | |
tree | 4afe345736b9d1e946ddd4ad5fdbc349b046900f /Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml | |
parent | 80d4609008e6d696a279e39ae7458c916fcd44c1 (diff) | |
download | linux-87563a043cef044fed5db7967a75741cc16ad2b1.tar.xz |
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 <duoming@zju.edu.cn>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220203150811.42256-1-duoming@zju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml')
0 files changed, 0 insertions, 0 deletions