]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: Remove netlink_compare_arg.trailer
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Mar 2015 03:14:03 +0000 (14:14 +1100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Mar 2015 04:16:39 +0000 (00:16 -0400)
commitfa099ce8b82a854bcc21921b09cf3e3f8c899a72
tree162dcee7acf5194f04e0cd3ce444f7520f87553a
parent271532618430efc505949f64c0b09c55fc72b5a8
netlink: Remove netlink_compare_arg.trailer

Instead of computing the offset from trailer, this patch computes
netlink_compare_arg_len from the offset of portid and then adds 4
to it.  This allows trailer to be removed.

Reported-by: David Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c