From: Ivan Mironov Subject: Re: [EXT] [PATCH v1] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw Date: Mon, 24 Dec 2018 20:16:38 +0500 Message-ID: <4a78261cba6647cd9665ed42f175eeedf412b85b.camel@gmail.com> References: <20181224115609.21752-1-mironov.ivan@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Ariel Elior , Sudarsana Kalluru , "everest-linux-l2@cavium.com" , "David S. Miller" , "linux-kernel@vger.kernel.org" To: Sudarsana Reddy Kalluru , "netdev@vger.kernel.org" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.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.