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 X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EFC5C433E0 for ; Sun, 21 Feb 2021 15:31:48 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3D9FC64EEF for ; Sun, 21 Feb 2021 15:31:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D9FC64EEF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=karthek.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id EFD0B6F478 for ; Sun, 21 Feb 2021 15:31:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7MVcwGwh0uoV for ; Sun, 21 Feb 2021 15:31:47 +0000 (UTC) Received: by smtp3.osuosl.org (Postfix, from userid 1001) id 008696E6E7; Sun, 21 Feb 2021 15:31:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 1291660701; Sun, 21 Feb 2021 15:31:45 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8712C1BF954 for ; Sun, 21 Feb 2021 15:31:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 75D6E83279 for ; Sun, 21 Feb 2021 15:31:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ABSn7IEc1ci7 for ; Sun, 21 Feb 2021 15:31:43 +0000 (UTC) Received: by smtp1.osuosl.org (Postfix, from userid 1001) id A4719833CE; Sun, 21 Feb 2021 15:31:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by smtp1.osuosl.org (Postfix) with ESMTPS id F0C4A833CE for ; Sun, 21 Feb 2021 15:31:34 +0000 (UTC) Received: by mail-pg1-f179.google.com with SMTP id b21so8500190pgk.7 for ; Sun, 21 Feb 2021 07:31:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FJwLUK5Y+uvXnv0u3F+27KKfrXN2CvtQs9gB7otpFhU=; b=LVOfcTrvpuxoLuoVaTtCPMz5itf4NIk6TmX3mjwpFumtTWxCKi0dVuPWBgf/JSoCZz nfRL2cHHY8m3v9DzmXDmTIGZCyMnop9Zp8xSqBbppN9DuCbKjwNQ/ZSQ21l6lDI+XtlX D+g5hwGaxfVUv1lMbmM1gGMqbPo4VMaO6OqwAkrTRxz2e6NvESIhug4YbN0/ilvqEag6 M6eSKorkIX7aU5lBX+0V/hgQ21JpW/BGXiwjTstBMFfwtbG92VfzxvzLFbFZhCKf/bYl LqHEutughvf+vP7dFX9HXZJ8oOZJ0goI3cYhEfzLRyM2jbaL+fhiR0XssRC9pqQZ6bqY yvxQ== X-Gm-Message-State: AOAM531ORtD4CkKih8IKSIAQp3o2zSgu0/g1jXTZPVIUWiIQ3c6s3dwg BOiUgdOuOi6QvkxrowqhZkM= X-Google-Smtp-Source: ABdhPJyQfbpOGU2Lj4gfozHmRXJXahPKqV0HmUcLyQ7TPdrdAgEIhm6NIf+EIkFg7eE53tA9XWyOBA== X-Received: by 2002:a65:5c44:: with SMTP id v4mr16063998pgr.362.1613921494284; Sun, 21 Feb 2021 07:31:34 -0800 (PST) Received: from karthik-strix-linux.karthek.com ([192.140.154.12]) by smtp.gmail.com with ESMTPSA id b22sm75647pfo.23.2021.02.21.07.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 07:31:33 -0800 (PST) Date: Sun, 21 Feb 2021 21:01:28 +0530 From: karthik alapati To: Greg Kroah-Hartman , Lee Jones , Jakub Kicinski , Arnd Bergmann , Johannes Berg Subject: [PATCH 2/2] staging: wimax/i2400m: convert __le32 type to host byte-order Message-ID: <87f93e091f736cb422f1d557fa5a2ac752f057a8.1613921277.git.mail@karthek.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" fix sparse type warning by converting __le32 types to host byte-order types before comparison Signed-off-by: karthik alapati --- drivers/staging/wimax/i2400m/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wimax/i2400m/fw.c b/drivers/staging/wimax/i2400m/fw.c index 92ea5c101..f09de1810 100644 --- a/drivers/staging/wimax/i2400m/fw.c +++ b/drivers/staging/wimax/i2400m/fw.c @@ -511,7 +511,7 @@ ssize_t __i2400m_bm_ack_verify(struct i2400m *i2400m, int opcode, opcode, i2400m_brh_get_response(ack)); goto error_ack_failed; } - if (ack_size < ack->data_size + sizeof(*ack)) { + if (ack_size < le32_to_cpu(ack->data_size) + sizeof(*ack)) { dev_err(dev, "boot-mode cmd %d: SW BUG " "driver provided only %zu bytes for %zu bytes " "of data\n", opcode, ack_size, -- 2.30.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel