From patchwork Tue Nov 23 07:52:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 12633591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA9E5C433F5 for ; Tue, 23 Nov 2021 07:53:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234012AbhKWH5G (ORCPT ); Tue, 23 Nov 2021 02:57:06 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:40375 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233578AbhKWH5F (ORCPT ); Tue, 23 Nov 2021 02:57:05 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C434F5C0175; Tue, 23 Nov 2021 02:53:57 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 23 Nov 2021 02:53:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=r5qJFaZ6EfZghqN1Y ayP5iPYpe6X/RzMfNziGhcvbpk=; b=Asj6sfDDv1X63kwpu6Le6retOZ6fqxfHQ Tc/SsAiPNw85tH3yTS3BRnSofC7kbK/qJbsHQQEF7hTyEwA2C4ejOO8LsHyA0NNh nLSOoz+hm8Gz9VTh64O8ErR5Z6JwrtubTBp8xsQpDPBFOLshfMEsqOLfwo7aWGR+ K+92cNtRjx737+bbptOUqksGayLYvcUKlLgSUINoHDl84nRN5+k3wKMzy/ulb0jY xIFacEukDeBTeGS0IV7n7x/M17AJX1q2m7sk5MLZItn26LEAwNtmwxUonLons/Jb W72e41LaoDkxlWSc70n6MdLwZatAUJxNwwBF7oXsCjslLr/xKW34w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeehgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecuggftrfgrthhtvghrnhepteevgefhvefggfffkeeuffeuvdfhueehhe etffeikeegheevfedvgeelvdffudfhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Nov 2021 02:53:55 -0500 (EST) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, jiri@nvidia.com, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net 0/2] mlxsw: Two small fixes Date: Tue, 23 Nov 2021 09:52:54 +0200 Message-Id: <20211123075256.3083281-1-idosch@idosch.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Ido Schimmel Patch #1 fixes a recent regression that prevents the driver from loading with old firmware versions. Patch #2 protects the driver from a NULL pointer dereference when working on top of a buggy firmware. This was never observed in an actual system, only on top of an emulator during development. Amit Cohen (1): mlxsw: spectrum: Protect driver from buggy firmware Danielle Ratson (1): mlxsw: spectrum: Allow driver to load with old firmware versions drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)