Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3061037rwb; Mon, 15 Aug 2022 17:09:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uMU4ypGfY/Xc9C0SxvMMObfGEMtbD1+THThShZigPZyVwb1oST+e6GkV/V8XL2rss3bTW X-Received: by 2002:a05:6402:2b98:b0:43e:107:183d with SMTP id fj24-20020a0564022b9800b0043e0107183dmr16714786edb.366.1660608595783; Mon, 15 Aug 2022 17:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660608595; cv=none; d=google.com; s=arc-20160816; b=WrM+j+SAMQnpfWwJhODYITaHTB2rKc5wmp8VRoiDT1FNZuFNnB1D0C+ssS8RFfv88i 149epabERcsSwts8COyHsfccimIY70ptztJlkFkS+bMuMKTpyo4ALCA+95lVwfihR8JF BlnH5cxHDppsWItCHMuOhUdB0SfIn9/5fg46z833nFlJR7z/3P4eHf6znHsafVS2eI/E CtPkJSvCFoS6LFLJlpWL1It8/S7Nfe+jG9jrlv9Qt/EnYcOJkK4stbEGNbrHDjPW8nhM 5TjXm00kxxxxgJyzmF27owqLFxW5+a6DrBd4YTdt+YrqIutVGtOZXWOAX+7ybYBFXBeQ FUWQ== 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=1nUaxcVvAQ7Be0d0xCgMpNUuQsS6Z7QJfWLC9QUcCSs=; b=ttjXYgGz93fae6I8eHLfXWO4/oO1h/Eok8osZyK1zRZw9PvPbKru+TM4BL1rsd/mB4 08h8Sf0ZFe89969hDHmAVKsHZ2ThYkvMkqCye1yZtNekJ3hYD9UOTa4ZHi8x6l0nUKar /5J628ZyXEb9waYa4c/R9Lzh7eBSpB3aZ/Yh3hfXbN+70VE4AYs7I6dtSvbn1DrsB2Pb EHnEBnxeyT3GVC9Zz97adndbRPR4cutJE7eptiLvFMJXFYx0Nzvuwws/OdaspkZNxCxM 1zko1MwIushEkYB5/oogELJxEU1bLPM3X54o2bHOlhl/mbzvYbpMo162VJW96z3c77P0 NEFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IbxPokLp; 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 hp10-20020a1709073e0a00b0073040248a76si8644460ejc.700.2022.08.15.17.09.23; Mon, 15 Aug 2022 17:09:55 -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=IbxPokLp; 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 S1356747AbiHPAH5 (ORCPT + 99 others); Mon, 15 Aug 2022 20:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352047AbiHPAAX (ORCPT ); Mon, 15 Aug 2022 20:00:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 007FB4C618; Mon, 15 Aug 2022 13:21:24 -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 9147E61058; Mon, 15 Aug 2022 20:21:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B1A5C433D7; Mon, 15 Aug 2022 20:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594884; bh=iR18bYAv9SkGFsw+uXDPCla5JonkaXLutaTp16BST7U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IbxPokLpyMPbNksmcCHfpgMwBy4HSk0U9xu2Pj4fLNkCJe5am/6UdWckpdnUBt5sA fLSMNSXCdxF2GhWvs0KyK0VrrEAisVeMY/O9rM94D8NtjDBgcXUUeceypLftkBQ22K xMqaLQ0g/d5J9284mlCZYIGikXhuOqcf6JOsZsuc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Alex Deucher , Sasha Levin Subject: [PATCH 5.19 0546/1157] drm/amd/display: fix signedness bug in execute_synaptics_rc_command() Date: Mon, 15 Aug 2022 19:58:22 +0200 Message-Id: <20220815180501.496657347@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 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 06ac561fb0edf868f7b292fb4a3c8ffbbb1e14bb ] The "ret" variable needs to be signed for the error handling to work. Fixes: 2ca97adccdc9 ("drm/amd/display: Add Synaptics Fifo Reset Workaround") Signed-off-by: Dan Carpenter Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index 7c799ddc1d27..82c04af09d18 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -571,7 +571,7 @@ static bool execute_synaptics_rc_command(struct drm_dp_aux *aux, unsigned char rc_cmd = 0; unsigned char rc_result = 0xFF; unsigned char i = 0; - uint8_t ret = 0; + int ret; if (is_write_cmd) { // write rc data -- 2.35.1