Skip to content
Commit 711c80f7 authored by Kito Xu's avatar Kito Xu Committed by Jakub Kicinski
Browse files

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: c7f905f0 ("[ATALK]: Add missing dev_hold() to atrtr_create().")
Signed-off-by: default avatarKito Xu <veritas501@foxmail.com>
Link: https://patch.msgid.link/tencent_E1A26771CDAB389A0396D1681A90A49E5D09@qq.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7ac5cc26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment