Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932848AbYBMJ1Q (ORCPT ); Wed, 13 Feb 2008 04:27:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932621AbYBMJZn (ORCPT ); Wed, 13 Feb 2008 04:25:43 -0500 Received: from smtp101.biz.mail.re2.yahoo.com ([68.142.229.215]:29775 "HELO smtp101.biz.mail.re2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754660AbYBMJZj (ORCPT ); Wed, 13 Feb 2008 04:25:39 -0500 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Wed, 13 Feb 2008 04:25:39 EST X-YMail-OSG: IBt7tfQVM1kEYyG2.HEC9kkDcq8BqBHIncAHx3dVgjyJvQ_plW77BJlJlyOj7d6CYyBehHLlJ3oV1lLjmco65J.ovy_Yd8.kArLni2mak182mJxCYfkTUYl4B9lFCAwdelRt9SQlYkEfPw-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <015c01c86e21$75317210$05c8a8c0@DIEGO> From: "Diego Guella" To: "Steve Wise" , "Roland Dreier" Cc: , , References: <20080212220929.24442.76874.stgit@dell3.ogc.int> Subject: Re: [ofa-general] [PATCH 2.6.25] RDMA/cxgb3: Fail loopbackconnections. Date: Wed, 13 Feb 2008 10:18:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 928 Lines: 35 One question below ----- Original Message ----- From: "Roland Dreier" To: "Steve Wise" Cc: ; ; Sent: Wednesday, February 13, 2008 1:26 AM Subject: Re: [ofa-general] [PATCH 2.6.25] RDMA/cxgb3: Fail loopbackconnections. > applied, although: > > > +static void is_loopback_dst(struct iw_cm_id *cm_id) > > +{ > > + struct net_device *dev; > > + > > + dev = ip_dev_find(&init_net, cm_id->remote_addr.sin_addr.s_addr); > > + if (!dev) > > + return 0; how can a static void function return 0? %) > > + dev_put(dev); > > + return 1; same here -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/