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.27.46~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d59e55cb2c8bc73f885de7242223849b3d051cd5;p=pandora-kernel.git ax25: Fix possible oops in ax25_make_new commit 8c185ab6185bf5e67766edb000ce428269364c86 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed