Skip to content
Commit e2d59768 authored by Chuang Wang's avatar Chuang Wang Committed by Greg Kroah-Hartman
Browse files

net: tun: rebuild error handling in tun_get_user



[ Upstream commit ab00af85 ]

The error handling in tun_get_user is very scattered.
This patch unifies error handling, reduces duplication of code, and
makes the logic clearer.

Signed-off-by: default avatarChuang Wang <nashuiliang@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 82b2bc27 ("tun: Fix memory leak for detached NAPI queue.")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ae42c6f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment