From: Erik Hugne Date: Thu, 23 Apr 2015 13:37:39 +0000 (-0400) Subject: tipc: fix random link reset problem X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2~57^2~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9871b27f6705fc6e0ba633b136369a289b2bfb99;p=pandora-kernel.git tipc: fix random link reset problem In the function tipc_sk_rcv(), the stack variable 'err' is only initialized to TIPC_ERR_NO_PORT for the first iteration over the link input queue. If a chain of messages are received from a link, failure to lookup the socket for any but the first message will cause the message to bounce back out on a random link. We fix this by properly initializing err. Signed-off-by: Erik Hugne Signed-off-by: Jon Maloy Signed-off-by: David S. Miller --- Reading git-diff-tree failed