commit | 9ecad877948deb2871d29e03786a7d7911687009 | [log] [tgz] |
---|---|---|
author | Pavel Emelyanov <xemul@openvz.org> | Tue Jun 03 15:18:36 2008 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Jun 03 15:18:36 2008 -0700 |
tree | d54d027469630aa3b3cd4334b41dd3bc42e50871 | |
parent | 7dccf1f4e1696c79bff064c3770867cc53cbc71c [diff] |
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>