]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: mmap: fix lookup frame position
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>
Fri, 28 Aug 2015 07:05:20 +0000 (16:05 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2015 05:25:42 +0000 (22:25 -0700)
commit7dfc9d1dac16024a4dfc8a24d265b01a004e9b8b
tree463dba9a70f3fa0df25bf01b4c9c224779242ced
parent1684d193f06836fd99ecd3d7d271a46adef8adbe
netlink: mmap: fix lookup frame position

__netlink_lookup_frame() was always called with the same "pos"
value in netlink_forward_ring(). It will look at the same ring entry
header over and over again, every time through this loop. Then cycle
through the whole ring, advancing ring->head, not "pos" until it
equals the "ring->head != head" loop test fails.

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c