Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756243Ab3CFWAO (ORCPT ); Wed, 6 Mar 2013 17:00:14 -0500 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]:37427 "EHLO smtp-outbound-1.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754154Ab3CFWAM (ORCPT ); Wed, 6 Mar 2013 17:00:12 -0500 Date: Wed, 6 Mar 2013 14:00:11 -0800 (PST) From: Bhavesh Davda To: David Miller Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pv-drivers@vmware.com, sbhatewara@vmware.com Message-ID: <591552351.12774238.1362607211741.JavaMail.root@vmware.com> In-Reply-To: <20130306.153841.784919874486534382.davem@davemloft.net> Subject: Re: [PATCH net-next] vmxnet3: prevent div-by-zero panic when ring resizing uninitialized dev MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.14] X-Mailer: Zimbra 7.2.0_GA_2681 (ZimbraWebClient - GC25 (Mac)/7.2.0_GA_2681) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1385 Lines: 37 > > --- > > drivers/net/vmxnet3/vmxnet3_drv.c | 3 ++- > > drivers/net/vmxnet3/vmxnet3_ethtool.c | 6 ++++++ > > drivers/net/vmxnet3/vmxnet3_int.h | 4 ++-- > > 3 files changed, 10 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c > > b/drivers/net/vmxnet3/vmxnet3_drv.c > > index 4aad350..bfc5898 100644 > > --- a/drivers/net/vmxnet3/vmxnet3_drv.c > > +++ b/drivers/net/vmxnet3/vmxnet3_drv.c > > @@ -2922,7 +2922,7 @@ vmxnet3_probe_device(struct pci_dev *pdev, > > (int)num_online_cpus()); > > else > > #endif > > - num_rx_queues = 1; > > + num_rx_queues = 1; > > Why are you un-indenting this else branch? Please don't do that > Just to annoy you :) [Sorry, couldn't resist.] I'm sorry I didn't notice I was breaking the indent of the else branch. For some reason checkpatch didn't complain. While at it, I'm also changing the netdev_info to netdev_err in vmxnet3_ethtool.c. You didn't explicitly ask for it, so I wasn't sure if I should repost the patch. I'm going to repost it any way and leave it up to you on which patch you want to apply. Thanks. - Bhavesh -- 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/