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 0D7ADC433DB for ; Sun, 21 Feb 2021 14:04:49 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (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 B97DF64EE0 for ; Sun, 21 Feb 2021 14:04:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B97DF64EE0 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 hemlock.osuosl.org (Postfix) with ESMTP id 9C332870B0; Sun, 21 Feb 2021 14:04:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eb-ntYZFfoxw; Sun, 21 Feb 2021 14:04:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6E6A6870A7; Sun, 21 Feb 2021 14:04:47 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id AB0C11BF2F9 for ; Sun, 21 Feb 2021 14:04:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 9551160715 for ; Sun, 21 Feb 2021 14:04:46 +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 te62v4u69Jtv for ; Sun, 21 Feb 2021 14:04:43 +0000 (UTC) Received: by smtp3.osuosl.org (Postfix, from userid 1001) id 2A2AB6F497; Sun, 21 Feb 2021 14:04:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by smtp3.osuosl.org (Postfix) with ESMTPS id 03FAD6F4A0 for ; Sun, 21 Feb 2021 14:04:41 +0000 (UTC) Received: by mail-pl1-f178.google.com with SMTP id u11so5966968plg.13 for ; Sun, 21 Feb 2021 06:04:41 -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=haShfN6aicwHTtMMRXFAhgjUrj1KHs+TEJO+u0d2tQ9jVjwIbIoTiaSSxZ5kyfNYBc jddF3N2Px+VsNcPjV/nGMjZjPSrrlXlyHKwt3xv/LMzChPWv0Klfvf3JKEoy5zB4q4uE oqn2qM8SlD6v9kUrFFjel3P3wMJJ4J4U+20kGT2TTHTc7cvlIhii3T12sLEXphqOX1N6 xLRG8LIoBISSjNaqnQvXKYSbH+Kl8wjYDeCoM24VM23Rj4S3SJ+t45GfE+Qvm3huh2lU aQ+FkYy1VopFxGTVvg2QWOgD08qBQHF0J3iK1vH+kAlmGCmOi9vS11OUruvQJjNobfw7 Lx/w== X-Gm-Message-State: AOAM530/ICCGswVHD870s+YHOhYi2qT17oKMGr2waRSA4QDfbPcK2BYp I/CdtT9xn+NnnHIq9R/3VWDze/jECP0= X-Google-Smtp-Source: ABdhPJzM4qUUFeS6ZUr+JAN81oTo6QqGklFnV8wcN2n0WY95XUQcinTlFV5uAAmr3dDD7JS5aAoyVA== X-Received: by 2002:a17:902:e551:b029:de:8dba:84a3 with SMTP id n17-20020a170902e551b02900de8dba84a3mr17649066plf.8.1613916281512; Sun, 21 Feb 2021 06:04:41 -0800 (PST) Received: from karthik-strix-linux.karthek.com ([192.140.154.12]) by smtp.gmail.com with ESMTPSA id j3sm14770700pgk.24.2021.02.21.06.04.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 06:04:41 -0800 (PST) Date: Sun, 21 Feb 2021 19:34:37 +0530 From: karthik alapati To: Greg Kroah-Hartman Subject: [PATCH 2/3] staging: wimax/i2400m: convert __le32 type to host byte-order Message-ID: <87f93e091f736cb422f1d557fa5a2ac752f057a8.1613915981.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