]> git.baikalelectronics.ru Git - kernel.git/commit
net: nla_align_64bit() needs to test the right pointer.
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2016 19:32:54 +0000 (15:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2016 19:32:54 +0000 (15:32 -0400)
commitf3d6fb325a5cee8cdcae768a7d4a0fc6353b4af7
tree6884a1cc212054143742fd2efbd16a86bac9ff92
parentf650120523c49c9e27e0c753f206323343edb590
net: nla_align_64bit() needs to test the right pointer.

Netlink messages are appended, one object at a time, to the end of
the SKB.  Therefore we need to test skb_tail_pointer() not skb->data
for alignment.

Fixes: e648c632521e ("net: Add helpers for 64-bit aligning netlink attributes.")
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h