kernel: bump 4.9 to 4.9.106 for 18.06
[openwrt/openwrt.git] / target / linux / generic / hack-4.9 / 901-debloat_sock_diag.patch
index 98ac5afea646eb0d7daf5ffc6afe6b2fb626ca2b..ed9c76326f38dc3313758e35958abade2b3250a4 100644 (file)
@@ -46,7 +46,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  static void __sk_free(struct sock *sk)
  {
 +#ifdef CONFIG_SOCK_DIAG
-       if (unlikely(sock_diag_has_destroy_listeners(sk) && sk->sk_net_refcnt))
+       if (unlikely(sk->sk_net_refcnt && sock_diag_has_destroy_listeners(sk)))
                sock_diag_broadcast_destroy(sk);
        else
 +#endif