Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3715370imu; Mon, 24 Dec 2018 07:19:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN4pr9RujPrSiTJCiOTsN41vTsk/dBRLbjJ6a5LNn2xWcXClOE8TDrT3+onf8w9e+2lRVIeW X-Received: by 2002:a63:dc54:: with SMTP id f20mr12790815pgj.410.1545664776659; Mon, 24 Dec 2018 07:19:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545664776; cv=none; d=google.com; s=arc-20160816; b=oiAGfl/Y6tDKHm3Mxk2qjqkwWB9OrLG4iCJ5Jk/nI8wAmd+1oPMpboUXRKckEehYtf vtzWRD3y3xLjU/3eO4LAuc2QoDU9gt+gPRtko8z073fAP3RQZYcGe/EqiCmDmyZ5d5/U IjhIdkiEaEtF/DMLHq1Xh3Jvn4KJOrADXAap/crKZQ+bNKIb+pVkFoWbSQUqsR5rrgGi tAlCq8zu7382UZCQQfI98kvK0thUV//HxfgEsswSFiCKITntgZgxscCmOianONWJ9bTZ j+G5IDXzEDi22zmeUjwpvc1ch/A9zmE4jAZmcnKHU0EvJmf5SmNT+vo9iPQ5Kpwl7mUT 7YBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ORVhNXgCPZM3kHw5IZwdFIVL9pqzwUYqYW+syPJ+CqY=; b=daAj7AGSuH5mVnGKBBD0feY2v9ZJf7oAiJRo2otxfts30N0SsgOQ6eUd7Lw9GPVQ/E 8gqwOz8pNDLK5zL7CUdKxzvBKKuZ8rzG18WsGWwM4npSCI8NLGhipdZsMmxVjAE9fIF0 KLgAlZjw1wxieNe/jqTHML6qG13pUf5JymG91Iy63nyjZ4MQKXlisdI9Ncejb4U4cptS gqFlaHfFJlT2T+F98Wpgd7fgQyZYwhs9XDdwctTzvROntK+nJKCKWeDwDM7AfkL/dp1e xrUSe6HagjuYF9wTiIWJPv1taUAkAFLbfxlpoSW/YY4WKXbIHmrJoHj3uCpGVViKjKCi ArXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qe4JNPXN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si13292744pll.297.2018.12.24.07.19.21; Mon, 24 Dec 2018 07:19:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qe4JNPXN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725817AbeLXPQn (ORCPT + 99 others); Mon, 24 Dec 2018 10:16:43 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46988 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbeLXPQm (ORCPT ); Mon, 24 Dec 2018 10:16:42 -0500 Received: by mail-lj1-f196.google.com with SMTP id v15-v6so10558422ljh.13; Mon, 24 Dec 2018 07:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=ORVhNXgCPZM3kHw5IZwdFIVL9pqzwUYqYW+syPJ+CqY=; b=qe4JNPXNB7+rw2ccSih6zJA6hDZCEIkZTxMc0rFJS3yZt1wtGsimghrdtR72TL2Lol 9hMvL0gwPEV0X9xvQUQxwj6bqxJbkAXymSVydX1SPR8fTAt/7N1p31DMraISisdYGew5 GLcL16BiIadg6Hhl/vqCPyE4wjsd77s+XHwKCP9w7AnII4tuT36GHeCv4mRqDjC9zFYR PvhEhsTblEajIL48AhwzKBJXH0fYqa8sCuaPF3/2cEzZ6YlbUJyIarxoQyS8fyzoSxNA ARpBF7HOsM7k2rrE7kn6l2xCnKrDYsOANVyvZ8IMv4n6dHf4c4V+NVmA0geIjYs7mClB SwQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ORVhNXgCPZM3kHw5IZwdFIVL9pqzwUYqYW+syPJ+CqY=; b=fP+RkTm/WRS93W7GU20YjlCJC8n4BkQU9qC3tDSNLg4MOgSStZT+InUo7uvcYxDN+a NimFgnBiNmwaZaAguRFUWSA7+0yO7co09Tsg7/wckG999iDJAqqHzuOZt+0LaRvDwRof 1dsbqgaysyU0wI03PmueaBQXb0Mlv4POk2iII6J4mB16Hc2Aa3JHsZv5zTW+DWX3QbM6 gCo8O2TxiwwFegKi84DWWrHWsZ2YFArzp0ww8GqviSfp1AvzjAkr9xr/R+cF9JO25jSU CprHFosMUpzScTnn2o7xXEWzcdakh5xbe3yM+24NN2MmR/n6rleKuwLp32hfRDzWwJa4 amZQ== X-Gm-Message-State: AJcUukfBwfPuA+7izibfUUBCXCsN1HhER9Uj35i+yZwIERwEOJGvVefx lENZIUZ+/AUKpGKjpUoGtZg2++AE1vc+4gmg X-Received: by 2002:a2e:91d1:: with SMTP id u17-v6mr7762324ljg.160.1545664600234; Mon, 24 Dec 2018 07:16:40 -0800 (PST) Received: from im-mac (pool-109-191-228-208.is74.ru. [109.191.228.208]) by smtp.gmail.com with ESMTPSA id f11sm6443936lfi.12.2018.12.24.07.16.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Dec 2018 07:16:39 -0800 (PST) Message-ID: <4a78261cba6647cd9665ed42f175eeedf412b85b.camel@gmail.com> Subject: Re: [EXT] [PATCH v1] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw From: Ivan Mironov To: Sudarsana Reddy Kalluru , "netdev@vger.kernel.org" Cc: Ariel Elior , Sudarsana Kalluru , "everest-linux-l2@cavium.com" , "David S. Miller" , "linux-kernel@vger.kernel.org" Date: Mon, 24 Dec 2018 20:16:38 +0500 In-Reply-To: References: <20181224115609.21752-1-mironov.ivan@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.3 (3.30.3-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-12-24 at 14:26 +0000, Sudarsana Reddy Kalluru wrote: > Thanks a lot for root-causing the issue and the patch. > Another (simpler) way to address this would be to invoke bnx2x_del_all_vlans() only for the newer chips, e.g., > + if (!CHIP_IS_E1(bp)) { > /* Remove all currently configured VLANs */ > rc = bnx2x_del_all_vlans(bp); > if (rc < 0) > BNX2X_ERR("Failed to delete all VLANs\n"); > + } > Could you please check on this? Done. See the PATCH v2 in the mailing list. I tested it on my system.