From patchwork Sat Aug 22 19:15:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 43323 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7MJB1mE010799 for ; Sat, 22 Aug 2009 19:11:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933307AbZHVTK6 (ORCPT ); Sat, 22 Aug 2009 15:10:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933297AbZHVTK6 (ORCPT ); Sat, 22 Aug 2009 15:10:58 -0400 Received: from ey-out-2122.google.com ([74.125.78.26]:37672 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933294AbZHVTK5 (ORCPT ); Sat, 22 Aug 2009 15:10:57 -0400 Received: by ey-out-2122.google.com with SMTP id 22so376669eye.37 for ; Sat, 22 Aug 2009 12:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=j4ek1XYNIdG6jCC3uoC/3kzAJEV2w5B0RndM1fJixcY=; b=GQLpVCSe5Lyod9uC4LEujYj/XzN0WBqVOtOJvDx/DRAQnwSV9TxyZ1NHzBnIczVv+8 zplfYeGqs9blHqqAQYC/DP7PEddH2+HeM2J/W+0xc0GjaDZEqLSvDMeSZtzfc0X5rqJ4 Fk98gxVj/JBczJQoDcFhClVmJcwEVZTVBFndQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=YBL9Zgt1BKax+DtW9Fh0VAQ39WLrliAZHBATHMe/dcdVQLlMrXH2wg9j1o3GYbqHmJ byOUT58X7LYGNvp6qVC08CYB3jxZXmQX90VvSIf5fNbESypPVWbqSCMo3vxemXoJTRw1 b8x0pCXodcPXoAOUnZUgOFWW+GUO7Zb/73CHs= Received: by 10.210.137.16 with SMTP id k16mr1740619ebd.16.1250968258595; Sat, 22 Aug 2009 12:10:58 -0700 (PDT) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 10sm5504822eyz.41.2009.08.22.12.10.58 (version=SSLv3 cipher=RC4-MD5); Sat, 22 Aug 2009 12:10:58 -0700 (PDT) Message-ID: <4A9043E5.8070205@gmail.com> Date: Sat, 22 Aug 2009 21:15:49 +0200 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: "John W. Linville" , linux-wireless@vger.kernel.org, Andrew Morton Subject: [PATCH] nl80211: jump to out_err upon unsupported iftype Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Jump to out_err when the iftype is not supported. Signed-off-by: Roel Kluin --- -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 634496b..c6fc083 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -1998,7 +1998,7 @@ static int nl80211_dump_mpath(struct sk_buff *skb, if (netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) { err = -EOPNOTSUPP; - goto out; + goto out_err; } while (1) {