commit | 8c185ab6185bf5e67766edb000ce428269364c86 | [log] [tgz] |
---|---|---|
author | Jarek Poplawski <jarkao2@gmail.com> | Sun Sep 27 10:57:02 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Sep 30 16:44:12 2009 -0700 |
tree | f866c6daea8affedbe04bba6948bd688e9500498 | |
parent | 81bbb3d4048cf577b5babcb0834230de391a35c5 [diff] |
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 <f6bvp@free.fr> Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>