]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix socket list regression in new nl api
authorRichard Alpe <richard.alpe@ericsson.com>
Fri, 16 Jan 2015 11:30:40 +0000 (12:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jan 2015 05:27:05 +0000 (00:27 -0500)
commit61d041f0afb2bd4c4306851856f9e718d91eb2f8
treef6c3a913982d5f580191e5f0c31083e83ed39f6f
parent0387f9b7c46d35d6939dcdbcb78af86707f97400
tipc: fix socket list regression in new nl api

Commit fe5d2a55 (tipc: convert tipc reference table to use generic
rhashtable) introduced a problem with port listing in the new netlink
API. It broke the resume functionality resulting in a never ending
loop. This was caused by starting with the first hash table every time
subsequently never returning an empty skb (terminating).

This patch fixes the resume mechanism by keeping a logical reference
to the last hash table along with a logical reference to the socket
(port) that didn't fit in the previous message.

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c