Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp680122pxb; Tue, 5 Apr 2022 18:30:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDCpQfetGodvkv9HhC38q2BrdnZa1HM760/Dza1DsimrYCsHvJdqXBAuXlsR50hih/r5E7 X-Received: by 2002:a17:90b:1c8e:b0:1bf:364c:dd7a with SMTP id oo14-20020a17090b1c8e00b001bf364cdd7amr7045310pjb.103.1649208609950; Tue, 05 Apr 2022 18:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649208609; cv=none; d=google.com; s=arc-20160816; b=z2PMuVQSZtdpepcmJl4TF3TTNut5uMDPFv6ixUudgICocaqojU1PFT5U19q9Okd5VD ZUkhwlUqEHPzLDKa0T90lAeRZWZLSvcTVMv14AUihW7Ff5gzL6A9ujzSIo23u6gbMOAI a1Ueb3glfRlOLQyE9BCpIHQMrOJ4NHv7kMag+qd3ImTl6FHPcD280fPGjyRjP5/d/M2N euXnwJFYKrLGsnEagbYLT1dnYjNLk/UdC3/Vn5c9BhXi5vMfTJzKV6YvgMoxBwanwuRw ImhFUfXb074ac6HvrU+ufpL7g88h69MZq3HNzKxGZrvBN0oyI04co57tRIyQU8yypkKc 7udQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=WYRrBwECkumi5K+cB3CaDB774UJ1abkaONmF3WfCMPs=; b=C3f6ynP7lzFbwhmafHMO+daT41Uwn3UMahDGvrkoFmnVwcJUomla/yMNKlK5XrZAJ8 Uio1WYZB3M1uMbTfmgkdOvHS0snNOkoWMUp60f2iU1rPWS+8qhQgADkabJgLKar0uBxh CT5GwvUpn311VSbksN3xMMbRbu1btPrd2rnIW8X7UoArRq/1JOZ+hZk6tWsH0YjiQAMg MBGBDRWIuTqDopwWYR0p2FV2r4oAmLwg++Js5E2gutfFG7B0xzKOEUawEApzUuWSDsnE qd3B5PjEtwJusWO4UBYkI/Iws9xGlmORx7C2ingPky6kWKL8KJHQFPX0rjLZo81AqbnQ 2+kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ET7iX/+2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m12-20020a17090a4d8c00b001bed0171c8esi2047510pjh.13.2022.04.05.18.29.53; Tue, 05 Apr 2022 18:30:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ET7iX/+2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236107AbiDEIBZ (ORCPT + 99 others); Tue, 5 Apr 2022 04:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232841AbiDEHvn (ORCPT ); Tue, 5 Apr 2022 03:51:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C61985B5; Tue, 5 Apr 2022 00:47:55 -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 DFB79616C3; Tue, 5 Apr 2022 07:47:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C36E6C340EE; Tue, 5 Apr 2022 07:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649144874; bh=9O4WwJcVZHyVCNAhD625hdBxv0ETQ7GrIEIGwSSzUAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ET7iX/+20OLgd0mEwSYPnP+hRX/w0Kw+t2wZI3oPOfrRhmL8mZE9lc/v0TpqBTjSL cSSI/1KllBw5VR6agf3JeW5C8BE6vpZu+bQCSish4St+WTqe29k7d24VxIkri/Gg+f bG/rBils1b8WWB82g67z3iXXmqaXjdrSVSK+FHB0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Giovanni Cabiddu , Herbert Xu , Sasha Levin Subject: [PATCH 5.17 0202/1126] crypto: qat - fix a signedness bug in get_service_enabled() Date: Tue, 5 Apr 2022 09:15:49 +0200 Message-Id: <20220405070413.535798562@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Dan Carpenter [ Upstream commit 844318dfd31f7c99f6cebbdba5d6f8392c4c115c ] The "ret" variable needs to be signed or there is an error message which will not be printed correctly. Fixes: 0cec19c761e5 ("crypto: qat - add support for compression for 4xxx") Signed-off-by: Dan Carpenter Acked-by: Giovanni Cabiddu Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c b/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c index 6d10edc40aca..68d39c833332 100644 --- a/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c +++ b/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c @@ -52,7 +52,7 @@ static const char *const dev_cfg_services[] = { static int get_service_enabled(struct adf_accel_dev *accel_dev) { char services[ADF_CFG_MAX_VAL_LEN_IN_BYTES] = {0}; - u32 ret; + int ret; ret = adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC, ADF_SERVICES_ENABLED, services); -- 2.34.1