Re: [PATCH net] netlink: mmap: fix lookup frame position

2015-08-28 Thread David Miller
From: Ken-ichirou MATSUZAWA Date: Fri, 28 Aug 2015 16:05:20 +0900 > __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

[PATCH net] netlink: mmap: fix lookup frame position

2015-08-28 Thread Ken-ichirou MATSUZAWA
__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" l