From mboxrd@z Thu Jan 1 00:00:00 1970 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 EDC77C7618E for ; Fri, 21 Apr 2023 02:58:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232944AbjDUC62 (ORCPT ); Thu, 20 Apr 2023 22:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbjDUC61 (ORCPT ); Thu, 20 Apr 2023 22:58:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DEA44210; Thu, 20 Apr 2023 19:57:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 72FF164D53; Fri, 21 Apr 2023 02:56:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A1BCC433D2; Fri, 21 Apr 2023 02:56:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682045816; bh=bimPx7thQ2VkhGHYmgwVjsR/nA45Fhq6St9JatsrN48=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Vh3mzxw1m72VU2aJbLAS1Yck5k2f2qlR89dL1i5jdSnLDD3NPe1u28JKWbFw9xaCo 7kOikul6d+mSiyfJKareNta5gFtzXOyn7fwZJpQ/WAXylyIz+gbRE68X14VWPiadoK 0Fiy4+CVF9zmKancTxzSEFB+9WknMR7NqiKL/O73XFmZp+E70wHoA1VhJC7T+WDSJN TnNjOTsawxPnAPdIw/A654wDYnt406yGGKd4RSDE5XVz9YJNE8bMH6w2yBdJXHzwQk 4I5tenVXnCJigqt8IJK0AJYEHgMJTZtdKOuVvIT7kTkNHXsIcpuglgh/QeMEsf8Ydf LaSEzmsSRDlHg== Date: Thu, 20 Apr 2023 19:56:55 -0700 From: Jakub Kicinski To: Daniil Tatianin Cc: Ariel Elior , Manish Chopra , "David S. Miller" , Eric Dumazet , Paolo Abeni , Yuval Mintz , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] qed/qed_sriov: propagate errors from qed_init_run in enable_vf_access Message-ID: <20230420195655.24433b80@kernel.org> In-Reply-To: <20230420082016.335314-1-d-tatianin@yandex-team.ru> References: <20230420082016.335314-1-d-tatianin@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 20 Apr 2023 11:20:16 +0300 Daniil Tatianin wrote: > The return value was silently ignored, and not propagated to the caller. > > Found by Linux Verification Center (linuxtesting.org) with the SVACE > static analysis tool. > > Fixes: 1408cc1fa48c ("qed: Introduce VFs") > Signed-off-by: Daniil Tatianin > --- > I'm not familiar enough with the code to know if there's anything we > have to undo here in case qed_init_run returns an error. Any additional > comments are appreciated. This patch does not inspire confidence. This is a pretty old driver, you need to provide some reasoning why checking the return value is important, and correct. -- pw-bot: cr