Commit 428877d3 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Fix possible leak in af_ax25

Spotted with the source checker from Coverity.com.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3e5583c1
......@@ -1272,6 +1272,9 @@ static int ax25_connect(struct socket *sock, struct sockaddr *uaddr,
sock->state = SS_CONNECTED;
if (digi != NULL)
kfree(digi);
err=0;
out:
release_sock(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment