From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Friesen Subject: Re: [BUG] TIPC handling of -ERESTARTSYS in connect() Date: Fri, 31 Aug 2012 09:09:56 -0600 Message-ID: <5040D3C4.2010308@genband.com> References: <503F84CF.208@genband.com> <504085D9.3010907@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev , Allan Stephens , Jon Maloy To: Ying Xue Return-path: Received: from exprod7og112.obsmtp.com ([64.18.2.177]:38506 "EHLO exprod7og112.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753985Ab2HaPL4 (ORCPT ); Fri, 31 Aug 2012 11:11:56 -0400 In-Reply-To: <504085D9.3010907@windriver.com> Sender: netdev-owner@vger.kernel.org List-ID: On 08/31/2012 03:37 AM, Ying Xue wrote: > Hi Chris, > > Although this is a known issue, still thanks for your report. > > Regardless of 1.7.7 or mainline, the issue really exists. > Can you please check and verify the attached patch? > > PS: the patch is based on 1.7.7 rather than mainline. I haven't had a chance to test it yet but from visual inspection the patch looks pretty good. It looks like the case where we come in with "sock->state == SS_LISTENING" has changed. Previously we would return -EOPNOTSUPP but now it'll be -EINVAL. Is that intentional? Chris