Re: [PATCH net] netlink: mmap: fix lookup frame position
From: David Miller <davem@davemloft.net>
Date: 2015-08-29 05:26:04
From: David Miller <davem@davemloft.net>
Date: 2015-08-29 05:26:04
From: Ken-ichirou MATSUZAWA <redacted> 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, advancing ring->head, not "pos" until it equals the "ring->head != head" loop test fails. Signed-off-by: Ken-ichirou MATSUZAWA <redacted>
Applied.