From patchwork Sat May 22 20:27:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 53285 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1F83DB7D47 for ; Sun, 23 May 2010 06:28:18 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758193Ab0EVU2M (ORCPT ); Sat, 22 May 2010 16:28:12 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:56255 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757978Ab0EVU2L (ORCPT ); Sat, 22 May 2010 16:28:11 -0400 Received: by vws9 with SMTP id 9so1654321vws.19 for ; Sat, 22 May 2010 13:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=CE+9zsJTRmtrCiUCFpO7AIrhDfkPsQR51/B8L1o1WAo=; b=jByBADWAuZZPNf6Gos0UiFVayCxDN9CCE7IlvL+30qa4bvJZBvSkFtO2zKjH5Ro72j 0zG21b2RcRdqm/Ta4YQHqmuoOC9QioPcWgS5HPIJ94TJoDBachylk33G38R0bc6N/AfM K4b5/Fv30AFUHJiP4jJe5bxBPvei2AXv/hz/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=d59XhL/1LcY3/RnHDh7dDFhjlfsqJWNOGUnOjsabI8DCM191vVtYaplj0+64ucXcWE xcXOGjZKideKeHniA7g2fBuadEBNxheha03Njhtu/B4nY5QxqSH5g48UyMejx7lm5SnK qxFTwkSyFPCK+yM+jOXsIVpGePWnyXEx1xBgs= Received: by 10.220.61.142 with SMTP id t14mr2282612vch.151.1274560087390; Sat, 22 May 2010 13:28:07 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id s9sm10735423vcr.15.2010.05.22.13.27.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 May 2010 13:28:06 -0700 (PDT) Date: Sat, 22 May 2010 22:27:48 +0200 From: Dan Carpenter To: Michal Ostrowski Cc: "David S. Miller" , Eric Dumazet , Jiri Pirko , Denys Fedoryschenko , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] pppoe: uninitialized variable in pppoe_flush_dev() Message-ID: <20100522202534.GO22515@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This assignment got deleted along with the checks by mistake. This comes from: 8753d29fd "pppoe: remove unnecessary checks in pppoe_flush_dev" Signed-off-by: Dan Carpenter --- To unsubscribe from this list: send the line "unsubscribe netdev" 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/drivers/net/pppoe.c b/drivers/net/pppoe.c index b1b93ff..805b64d 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c @@ -289,6 +289,7 @@ static void pppoe_flush_dev(struct net_device *dev) struct pppoe_net *pn; int i; + pn = pppoe_pernet(dev_net(dev)); write_lock_bh(&pn->hash_lock); for (i = 0; i < PPPOE_HASH_SIZE; i++) { struct pppox_sock *po = pn->hash_table[i];