mirror-linux/net/appletalk
Kito Xu 711c80f7d8 net: appletalk: Fix device refcount leak in atrtr_create()
When updating an existing route entry in atrtr_create(), the old device
reference was not being released before assigning the new device,
leading to a device refcount leak. Fix this by calling dev_put() to
release the old device reference before holding the new one.

Fixes: c7f905f0f6 ("[ATALK]: Add missing dev_hold() to atrtr_create().")
Signed-off-by: Kito Xu <veritas501@foxmail.com>
Link: https://patch.msgid.link/tencent_E1A26771CDAB389A0396D1681A90A49E5D09@qq.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-10 18:01:08 -07:00
..
Kconfig appletalk: remove ipddp driver 2023-10-10 17:49:00 -07:00
Makefile appletalk: Remove deadcode 2024-10-04 12:42:32 +01:00
aarp.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
atalk_proc.c
ddp.c net: appletalk: Fix device refcount leak in atrtr_create() 2025-07-10 18:01:08 -07:00
sysctl_net_atalk.c appletalk: Remove the now superfluous sentinel elements from ctl_table array 2024-05-03 13:29:42 +01:00