From: Jarek Poplawski Date: Sun, 27 Sep 2009 10:57:02 +0000 (+0000) Subject: ax25: Fix possible oops in ax25_make_new X-Git-Tag: v2.6.32-rc3~56^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c185ab6185bf5e67766edb000ce428269364c86;p=pandora-kernel.git ax25: Fix possible oops in ax25_make_new In ax25_make_new, if kmemdup of digipeat returns an error, there would be an oops in sk_free while calling sk_destruct, because sk_protinfo is NULL at the moment; move sk->sk_destruct initialization after this. BTW of reported-by: Bernard Pidoux F6BVP Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller --- Reading git-diff-tree failed