Commit 9ecad877 authored by Committed by David S. Miller
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 <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
Showing with 7 additions and 5 deletions