From patchwork Wed Jul 7 13:02:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 110636 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o67D5PjA030154 for ; Wed, 7 Jul 2010 13:05:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754985Ab0GGNEw (ORCPT ); Wed, 7 Jul 2010 09:04:52 -0400 Received: from mail.pripojeni.net ([217.66.174.14]:60593 "EHLO mail.pripojeni.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754608Ab0GGNEv (ORCPT ); Wed, 7 Jul 2010 09:04:51 -0400 Received: from anemoi.localdomain ([217.66.174.142]) by mail.pripojeni.net (Kerio Connect 7.0.0 patch 1); Wed, 7 Jul 2010 15:02:47 +0200 From: Jiri Slaby To: johannes@sipsolutions.net Cc: jirislaby@gmail.com, linux-kernel@vger.kernel.org, "John W. Linville" , "David S. Miller" , Jouni Malinen , Samuel Ortiz , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] NET: nl80211, fix lock imbalance and netdev referencing Date: Wed, 7 Jul 2010 15:02:46 +0200 Message-Id: <1278507766-309-1-git-send-email-jirislaby@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 07 Jul 2010 13:05:25 +0000 (UTC) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 85285b4..fbfac58 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -877,7 +877,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) int idx, mbm = 0; if (!rdev->ops->set_tx_power) { - return -EOPNOTSUPP; + result = -EOPNOTSUPP; goto bad_res; }