From: Pavel Emelyanov Date: Tue, 3 Jun 2008 22:18:36 +0000 (-0700) Subject: irda: Sock leak on error path in irda_create. X-Git-Tag: v2.6.26-rc5~1^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ecad877948deb2871d29e03786a7d7911687009;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed