--- linux-3.13.3/net/netlink/af_netlink.c 2014-02-20 16:52:23.684218550 +0100 +++ linux-3.13.3/net/netlink/af_netlink.c 2014-02-20 16:54:03.065383489 +0100 @@ -2891,8 +2891,8 @@ s = v; do { s = sk_next(s); - } while ((s && !nl_table[s->sk_protocol].compare(net, s)) || - !nx_check(s->sk_nid, VS_WATCH_P | VS_IDENT)); + } while (s && (!nl_table[s->sk_protocol].compare(net, s) || + !nx_check(s->sk_nid, VS_WATCH_P | VS_IDENT))); if (s) return s; @@ -2905,8 +2905,8 @@ for (; j <= hash->mask; j++) { s = sk_head(&hash->table[j]); - while ((s && !nl_table[s->sk_protocol].compare(net, s)) || - !nx_check(s->sk_nid, VS_WATCH_P | VS_IDENT)) + while (s && (!nl_table[s->sk_protocol].compare(net, s) || + !nx_check(s->sk_nid, VS_WATCH_P | VS_IDENT))) s = sk_next(s); if (s) { iter->link = i;