Unverified Commit 130de291 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14812 net: af_can: do not leave a dangling sk pointer in can_create()

parents ba3cb236 d8f40f92
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -189,6 +189,7 @@ static int can_create(struct net *net, struct socket *sock, int protocol,
		/* release sk on errors */
		sock_orphan(sk);
		sock_put(sk);
		sock->sk = NULL;
	}

 errout: