Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp54321lfe; Fri, 15 Apr 2022 19:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDTCyDJ9hWgVpjHwrkA3yQi5MO5KFsyx6ePG8egNx81ZMOVxus7Xzn6Y8KBCrn0HQTFXLi X-Received: by 2002:a17:902:f64c:b0:156:7ceb:b579 with SMTP id m12-20020a170902f64c00b001567cebb579mr1702265plg.73.1650074997242; Fri, 15 Apr 2022 19:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650074997; cv=none; d=google.com; s=arc-20160816; b=Z8iKlFBvtiEGPFUxfKW8cjzTEZY9BbzzkKKtdNngZ/Tzt8meWSiEjKORbEyteQzDGP vnpPmhyBoIlBbrPCwCk3XH9L4dP7upYsu48BI3Ul2lewkaXx22r5N01hWHc7Rj59tGGD dEJKFQHiYLeuz0gViO682BuLXcFV5EhQ51xOh8ey8QEOSKKxVzmd9VuUW5C2QUDtX6cy IPKlUuaULzP+hgbH10Uip7AgSax/GJ9240Ibjf2fBBPkyArgoeyewq4F/SjU3iwSj6WU mSSDGFj1LqoKopUmCTVRr6/rak78qodfiTfmWHrWlRA1J7OAemvYDgCYa2kOGUUKwl2L C9pQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2kVVWIn4+ecvL3sYl2+PczgNl0kQB4IqaH+XmO1cCTM=; b=pTKkyJxCFnsq1ov3qGqxkCG+Gshhe/HeSf6THgrnA4u2gnxBphwu9xy7fLO3aHUxmI 91rfcd7sdKzKfdjb6//WDQaz78msnJ//g7A94u4i4HTd89iX5TXUpX+Hbxa9m4NzZNsT h/+rAuh3tDbVg2Slt7JFMRUoaBtB/k7lKAZ2+IiWoF91b14ASfBK7N9KF5WCLP9k6R8K IPZ508f+Qts4OZgsFtkTwCZEBFQIe0S+Yvdo4xrfSrF9YtqP7s9ZwlDjSKneE7WEHSNF STRNxWRc+Mzbeiah5IxFQZfgdlfoAzrBHtKmpAEHmZgokWmYsW1snCEPkDGUgP8nQVzB TKYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LkJ49FHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id il4-20020a17090b164400b001cb56b40005si5781964pjb.185.2022.04.15.19.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LkJ49FHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 38AAF1E3E3A; Fri, 15 Apr 2022 18:26:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240416AbiDOFZI (ORCPT + 99 others); Fri, 15 Apr 2022 01:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238474AbiDOFZH (ORCPT ); Fri, 15 Apr 2022 01:25:07 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8D0E029 for ; Thu, 14 Apr 2022 22:22:40 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id t11so13629487eju.13 for ; Thu, 14 Apr 2022 22:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2kVVWIn4+ecvL3sYl2+PczgNl0kQB4IqaH+XmO1cCTM=; b=LkJ49FHDSq8yLqisCcngHd6LA8BVgBrFyzP+beFfpWfWErzakEMVHrueMnES3zpyA5 RZ9IqUvZrHv23ZSSiS9pOJnoMo6yJZYXT+noKo89pwmlKtWkYryEFsghwigatChoGxCE 3haxC4Zo+PbLew/hGx4GKMYn/mqVCcm6v6rn671/VD1obOHKsgW5oG2ieiEBRgk5F66J gUBU0ZYR8rBN9LSwR4fICBUx4nuDhq4KuOn4k51UoersScuUZh3bI80mhIMWRRkGzlzh 24DQGVtskF8dDEUzdmHuWokRndeY851dz8DrTpx6/hojsdUmjUP89IYQRP1/Y6WkmNvv /gWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2kVVWIn4+ecvL3sYl2+PczgNl0kQB4IqaH+XmO1cCTM=; b=lNi/es+QWYYn/TDh7BA1DkATi0ous2ka2ITpXZ3pIQruHvuma234ZgWr89DIe1ttwb y1sIB6iUCbiAsL2cAEzAR/AdCMo1Cx/mAmK1YkxFOPXDppI2sFQjEO57z6NFsStvrPtX H+3mzh3i6Te02Ob1RzSMJ4Z3dr9KZ4VnuRWs2DSOjAhChQTi44NavI/o/igffUL6Yequ rfZJwIIk32CFlX5Mxoe2A/SG57wO7796EAYRgqyDi0urkBInR9mJMfKu+apuIZrutJu3 syrOQrd91gaVFk1gCp80tp1nKwiaQ7qtBGHHRPxUWZs4nWejkeencJNYyfJYqd4p3FkU 3ZVw== X-Gm-Message-State: AOAM531n83xjkbWKCUjRYbmDcxod+DYU0gSdtksGbV7wrord/X2UNHDr Sl22UyxD7Gihf90KWgUYER8= X-Received: by 2002:a17:906:c149:b0:6df:f047:1698 with SMTP id dp9-20020a170906c14900b006dff0471698mr5085735ejc.16.1650000159165; Thu, 14 Apr 2022 22:22:39 -0700 (PDT) Received: from leap.localnet (host-79-43-11-75.retail.telecomitalia.it. [79.43.11.75]) by smtp.gmail.com with ESMTPSA id 22-20020a17090600d600b006dfbc46efabsm1309308eji.126.2022.04.14.22.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 22:22:38 -0700 (PDT) From: "Fabio M. De Francesco" To: gregkh@linuxfoundation.org, davem@davemloft.net, dan.carpenter@oracle.com, len.baker@gmx.com, dave@stgolabs.net, edumazet@google.com, Haowen Bai Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Haowen Bai Subject: Re: [PATCH V2] staging: rtl8192e: Fix signedness bug in rtllib_rx_assoc_resp() Date: Fri, 15 Apr 2022 07:22:36 +0200 Message-ID: <8973092.rMLUfLXkoz@leap> In-Reply-To: <1649988571-19923-1-git-send-email-baihaowen@meizu.com> References: <1649988571-19923-1-git-send-email-baihaowen@meizu.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 venerd=EC 15 aprile 2022 04:09:31 CEST Haowen Bai wrote: > function rtllib_rx_assoc_resp () unsigned errcode receive auth_parse()'s > errcode -ENOMEM. >=20 > Signed-off-by: Haowen Bai > --- > V1->V2: reduce return random value; print its own error message. >=20 > drivers/staging/rtl8192e/rtllib_softmac.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) >=20 > [snip] It looks like you are doing too many things and that those aren't even=20 discussed in your commit message. > @@ -2292,8 +2292,8 @@ static void rtllib_rx_auth_resp(struct=20 rtllib_device *ieee, struct sk_buff *skb) > if (errcode) { > ieee->softmac_stats.rx_auth_rs_err++; > netdev_info(ieee->dev, > - "Authentication response status code=20 0x%x", > - errcode); > + "Authentication response status code %d", > + le16_to_cpu(errcode)); Why did you call le16_to_cpu(errcode)?=20 If I'm not missing something, it looks that auth_parse() already returns=20 native endian u16 values. Thanks, =46abio M. De Francesco