Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp944752pxb; Wed, 6 Apr 2022 05:01:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYkHAhUxDdgfAn8rAl0YRUTVkQzX6yGRpxtNwLctgjwNevzt3NmNzltqVDjtYNYthd02Io X-Received: by 2002:a05:6638:2582:b0:323:6a4a:d2c5 with SMTP id s2-20020a056638258200b003236a4ad2c5mr4433034jat.176.1649246501995; Wed, 06 Apr 2022 05:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246501; cv=none; d=google.com; s=arc-20160816; b=sw5hjLqOzZd7ZXUGOWmPbQIN7CQwOo4BM/d2qA0iJen3rYNY0AipsgIi6T3LmY9/d/ h4EuLdzjVt4EZA3eT3dChsIRY7Ir+yrFOucGNQpMGNsldORKyt0UD2IxRB82wJEzZW0K GeBedY0wkKIvf/psja9fuujUmytRp/iwZbkNC2gV6T75jWqZQ/QUW16Z3xi+yahoyTZl qHFdZeWaYqVc9WgaCzgdvcm4IppQxMXR4psrbllST7YTVrvJCi6q/TqHUEAH0Wa2uDII cENjWG/i1ubalIgD0vvVGylBrG6s36aKaviksWc5bQzPaSVclJ2NH7RAB7Qc41tbGzlw gSXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=qlAy1ak/kV6tHK9Bt1XWUiHugsXbSUUK6OAY60z+5+8=; b=zxvBFm9NQp0ghsT/HmZaoZ38YXri8dOaoiIjk49CkBuEyxuL3JyqK7o1NjbAXuhmmC 6J7yreNBCFh8Jw7wz6+Tyl8/yyGmLUA5c2UCvN3wSTqf7AWIUcXbIz1fLCYdH3RlQFU3 Rd+0LWoCMjyYC7QOqEJRBUR4rcDzF1FSiJmgWbwNELRxdj1RKyAahP4yF0HJzTJ5sMSu 33+9PnGreTV7y3A6V/kx92tIgHylgludaZG6FqeIbjcsfdHYfp4dnT/G72dF0rX8jkT2 92uUPaM/JgWkJOQhXMR8Qo0Ut8oQaZK3x2UHxCWcRzs1DutiZI3vmLNFNxs3cqtHhxeM UldA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NhLRvLUF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o17-20020a056e02115100b002ca4446b888si3778234ill.47.2022.04.06.05.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:01:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NhLRvLUF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93BE83AF481; Wed, 6 Apr 2022 03:25:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383323AbiDEUlk (ORCPT + 99 others); Tue, 5 Apr 2022 16:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349403AbiDEJts (ORCPT ); Tue, 5 Apr 2022 05:49:48 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 32CDD1704F for ; Tue, 5 Apr 2022 02:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649151896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qlAy1ak/kV6tHK9Bt1XWUiHugsXbSUUK6OAY60z+5+8=; b=NhLRvLUFeNLBMxCA91f2kXruCNf6OqsL/WK8x35QtDXc8BHUN49N9Gour5zwaI/lGE8lWX XuhucJsMgmZvKFAlSlaw/iplhdYgnlqVOH+1UiIVc2d/w2CmDnCKMR30Ny+1rYCE5hwbAd AyIVdQcNsgrxPPTY3oRicVtBPulmW3A= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-362-5xad1PVMPu-LafkGneHcgA-1; Tue, 05 Apr 2022 05:44:55 -0400 X-MC-Unique: 5xad1PVMPu-LafkGneHcgA-1 Received: by mail-wm1-f70.google.com with SMTP id n17-20020a05600c501100b0038e731cf5e1so1019167wmr.2 for ; Tue, 05 Apr 2022 02:44:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=qlAy1ak/kV6tHK9Bt1XWUiHugsXbSUUK6OAY60z+5+8=; b=2tfTQ1n1SUWO29w9GFfL8UmxU9eke7Aaovw983KVxIAagDX/S5c0of7ZgfEGIfzLjx BV/xa5+NfzLH7Dwvbl77Uo+cbBFi2FammkgTZBXUTXu4xWnUC1f5Af+gK8HSOzm67T0Y B3iwz8ea0HPV3a2IGZNe4KRCbI07ib9xthsZ1LaXCkPHnZksqRuEeYBm1HOEwE0x+lhL olphzQ8ZTWpRTu63xhYjKA6nL9xt3F1LpkVrq37UmuRUQFh48Y4ld70sI9efVAmjXD2r YYClXrNOyVmkpS/FszvLtaZbjEMP54uAFpCe5dXu1vkoMGfUPp4Xwf0W2tXs0kKsRJ4l hWfQ== X-Gm-Message-State: AOAM532LDB8c/ca2bWTzQZaglzOvoI2HsLdb5NNtlvRuY3kVfBYBKcTP UAm7E9fsXAKEv0Lbhd75RQe/8P9MVr9UtLt31+kv2sYOcunJa17y4fn+t/vErBV/x0lxqWqeJux NOLclZZdFsOUnk0X8e3dEIDyd X-Received: by 2002:a5d:4c81:0:b0:206:1a0a:a14 with SMTP id z1-20020a5d4c81000000b002061a0a0a14mr2042348wrs.101.1649151894299; Tue, 05 Apr 2022 02:44:54 -0700 (PDT) X-Received: by 2002:a5d:4c81:0:b0:206:1a0a:a14 with SMTP id z1-20020a5d4c81000000b002061a0a0a14mr2042326wrs.101.1649151894041; Tue, 05 Apr 2022 02:44:54 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-96-237.dyn.eolo.it. [146.241.96.237]) by smtp.gmail.com with ESMTPSA id r14-20020a05600c35ce00b0038c9f469979sm1640418wmq.40.2022.04.05.02.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 02:44:52 -0700 (PDT) Message-ID: Subject: Re: [PATCH] net: ax88179: add proper error handling of usb read errors From: Paolo Abeni To: David Kahurani , netdev@vger.kernel.org Cc: syzbot+d3dbdf31fbe9d8f5f311@syzkaller.appspotmail.com, davem@davemloft.net, jgg@ziepe.ca, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, phil@philpotter.co.uk, syzkaller-bugs@googlegroups.com, arnd@arndb.de, paskripkin@gmail.com Date: Tue, 05 Apr 2022 11:44:50 +0200 In-Reply-To: <20220404151036.265901-1-k.kahurani@gmail.com> References: <20220404151036.265901-1-k.kahurani@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-04-04 at 18:10 +0300, David Kahurani wrote: > @@ -354,8 +369,15 @@ static int ax88179_mdio_read(struct net_device *netdev, int phy_id, int loc) > { > struct usbnet *dev = netdev_priv(netdev); > u16 res; > + int ret; > + > + ret = ax88179_read_cmd(dev, AX_ACCESS_PHY, phy_id, (__u16)loc, 2, &res); > + > + if (ret < 0){ For the records: another recurring indentation issue is the lack of a whitespace after the ')'. Please address all the issues reported by scritps/checkpatch.pl before submitting the next version, thanks! Paolo