]> err.no Git - linux-2.6/commit
irda: Sock leak on error path in irda_create.
authorPavel Emelyanov <xemul@openvz.org>
Tue, 3 Jun 2008 22:18:36 +0000 (15:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jun 2008 22:18:36 +0000 (15:18 -0700)
commit9ecad877948deb2871d29e03786a7d7911687009
treed54d027469630aa3b3cd4334b41dd3bc42e50871
parent7dccf1f4e1696c79bff064c3770867cc53cbc71c
irda: Sock leak on error path in irda_create.

Bad type/protocol specified result in sk leak.

Fix is simple - release the sk if bad values are given,
but to make it possible just to call sk_free(), I move
some sk initialization a bit lower.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/af_irda.c