From patchwork Mon Aug 13 15:27:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Pirko X-Patchwork-Id: 1313701 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B1C78DF223 for ; Mon, 13 Aug 2012 15:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753008Ab2HMPaV (ORCPT ); Mon, 13 Aug 2012 11:30:21 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:55454 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752895Ab2HMP1p (ORCPT ); Mon, 13 Aug 2012 11:27:45 -0400 Received: by mail-ee0-f46.google.com with SMTP id l10so1192511eei.19 for ; Mon, 13 Aug 2012 08:27:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=7UFLInBIziUocFQWIKsjMrUuOFukaaiOuMNFkjgfXU4=; b=SPV/ZdUaJuZe6QUnJMjgwMOni2nSylMueeV6GUS9TDeu6WTKOKm7erEbvu/FathEZ0 NX2CFID+JZ6ogByUmoORoXEkC10k1MZ2hWyevM+njz1m5B4upw4T/3abNX1xv6BSSE+h FdksF6b/eNYGTmYL8juSF8DAE2lJueGhV25vfj40kYLMhd2S1nIdssp9YaTzkM77Z8x8 AVVBpz3WGEzkh0vrqW0pYgnl6IkCF5QoXqHHJUBzrNu8jgngCONfh6GEQYpjc2bloZra M2aPGhVlPD2zJ6ZBwdEhzq4rKvED6FhjkwWTsIcTBV/Xcw+rBUpE/HqtqFlAM60FKanm DGZg== Received: by 10.14.203.69 with SMTP id e45mr14528854eeo.23.1344871663747; Mon, 13 Aug 2012 08:27:43 -0700 (PDT) Received: from localhost (nat-pool-brq-t.redhat.com. [209.132.186.34]) by mx.google.com with ESMTPS id e7sm19871056eep.2.2012.08.13.08.27.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 08:27:43 -0700 (PDT) From: Jiri Pirko To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, faisal.latif@intel.com, roland@kernel.org, sean.hefty@intel.com, hal.rosenstock@gmail.com, fubar@us.ibm.com, andy@greyhouse.net, divy@chelsio.com, jitendra.kalsaria@qlogic.com, sony.chacko@qlogic.com, linux-driver@qlogic.com, kaber@trash.net, ursula.braun@de.ibm.com, blaschka@linux.vnet.ibm.com, linux390@de.ibm.com, shemminger@vyatta.com, bhutchings@solarflare.com, therbert@google.com, xiyou.wangcong@gmail.com, joe@perches.com, gregory.v.rose@intel.com, john.r.fastabend@intel.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, bridge@lists.linux-foundation.org, fbl@redhat.com Subject: [patch net-next 09/16] qlcnic: guard __vlan_find_dev_deep() by rcu_read_lock Date: Mon, 13 Aug 2012 17:27:08 +0200 Message-Id: <1344871635-1052-10-git-send-email-jiri@resnulli.us> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1344871635-1052-1-git-send-email-jiri@resnulli.us> References: <1344871635-1052-1-git-send-email-jiri@resnulli.us> X-Gm-Message-State: ALoCoQltx7LJuPNyAcDNylRSjI7c9rhi4XEy3XsWNy8Pms6Gs0tUQpKaoY+MJr1Rr+Hua8iv7Z5F Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org rcu_read_lock was missing here Signed-off-by: Jiri Pirko --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index 212c121..9eadf17 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c @@ -4425,12 +4425,14 @@ qlcnic_restore_indev_addr(struct net_device *netdev, unsigned long event) qlcnic_config_indev_addr(adapter, netdev, event); + rcu_read_lock(); for_each_set_bit(vid, adapter->vlans, VLAN_N_VID) { dev = __vlan_find_dev_deep(netdev, vid); if (!dev) continue; qlcnic_config_indev_addr(adapter, dev, event); } + rcu_read_unlock(); } static int qlcnic_netdev_event(struct notifier_block *this,