Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2311028rdh; Sun, 26 Nov 2023 01:26:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzY/pjB0rs8SnvnlFGhBlHMmijnKLk011N2qtxhctO36p15L5vqy71r0x87IUeX7jLJomN X-Received: by 2002:a05:6e02:10c7:b0:35c:9587:580b with SMTP id s7-20020a056e0210c700b0035c9587580bmr3255167ilj.5.1700990788498; Sun, 26 Nov 2023 01:26:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700990788; cv=none; d=google.com; s=arc-20160816; b=vz+3+kBJk5vezgwSi/OLDhceTLq0OuO0+AsvdynGU6QTMj3wCeSdUd9aZRH375NoA+ tkRcFAhZSV1yrY+k6bOTz3yyzTPeKIij51Z2rsxdmtb5KHnOxg9bw9yvLEGv3jx8fZGG Wd45bfas7dZmvcQWWBJA2mKE0vz1R6BDuj9530B+e98DrmGmSqj0Y7NZznDsIlsLMJiK TjpVFH1RGEu8QRVx4PfaueHmdUwBZOnzaCU4Aig5HRmJfRtTkcdcbibVvI813vPwUvKu TGLx0ljurEbCGpmnQV2/oJf7JMZWWy1M6HOqB7Guk3+uLjFkTBf27/PUYIITjtupq2jn 85DQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=FVr2rjM/HB7nGKywBT0phJx+VlxcoJ8U+bu9eUS0Eg8=; fh=np4jDbLVnoqkv3+sUYlitby5vs5P86AOvvZOqGHaBE8=; b=ZfY6x7M7MVLX6LhwqBwl1ahV+dr4WDoSYA3qCNzIuQOo40S8Jaeuj6gxLWJAt97+4N 3KtSSSKTlUAmftBJOxKFbtvISCCA9GIrjsQT7BbZ9PZrNDFtfLRNRTlYmaWx1VJFBhN/ kPLURiGLZwsa70JJHGrjmX+tYMJeukyBMhhrUWBo868S3VxDsVnt0pPiIyTfPmIA1uvy J4TArvr8dtNnj2utErtOWMRQm2PfS5qwZyogibxUSrFis2ZuT4v/RQHjjospD3hWHuyb l4eL/bTFeOP1aJWge2NGI/26sUQcMnrNA/7qAs7zNZA0mHhru6w70R/viUUubbKU1pQ0 caiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jQm8Ac8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id z10-20020a056a00240a00b006cbc1f9b4e0si7632589pfh.261.2023.11.26.01.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 01:26:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jQm8Ac8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0D53F80B950F; Sun, 26 Nov 2023 01:26:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjKZJY5 (ORCPT + 99 others); Sun, 26 Nov 2023 04:24:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKZJY4 (ORCPT ); Sun, 26 Nov 2023 04:24:56 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE450107 for ; Sun, 26 Nov 2023 01:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700990702; x=1732526702; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2XRi+Mv1Pe4HCxVW5KKaethFp6rjHDK3FWrG09d6Yl8=; b=jQm8Ac8kRJlyHS5MQx9Sc8Tm7tlm35rVIrAX9fOevp6XzCrCJxh6g1Xz khFDF3H+4tTXZK0n8VtcpBN6pOaj6RSWxHHEvGaOHcqphaEm+2W1cT33E ob+QmTZHqB6+dWag8vUImnlg10xDwTdwhOD1yFI/IRudqvOfZZzABr3VE DITTCcVHk2zFPok4yGWFM9feZusDch85VyS7DAy9AjBpPsmGANHdBRvx8 Z/Mc6gWUOlA6pPXbXbnT87sa+IDEAtvt66nzJH5tKY+yTnppHGVjbLypt Clcjd1HnKKZ0Wpvltu8WXdVNF7/Z7whGHl84473AVFbtWBYo2dThG23ur g==; X-IronPort-AV: E=McAfee;i="6600,9927,10905"; a="396462118" X-IronPort-AV: E=Sophos;i="6.04,228,1695711600"; d="scan'208";a="396462118" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2023 01:25:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,228,1695711600"; d="scan'208";a="9515856" Received: from twinkler-lnx.jer.intel.com ([10.12.231.216]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2023 01:25:00 -0800 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , Vitaly Lubart , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-linus for v6.7-rc3 V2] mei: pxp: fix mei_pxp_send_message return value Date: Sun, 26 Nov 2023 11:24:49 +0200 Message-ID: <20231126092449.88310-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 26 Nov 2023 01:26:26 -0800 (PST) From: Alexander Usyskin mei_pxp_send_message() should return zero on success and cannot propagate number of bytes as returned by internally called mei_cldev_send(). Fixes: ee5cb39348e6 ("mei: pxp: recover from recv fail under memory pressure") Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- V2: This is a resent for https://lkml.org/lkml/2023/10/31/636 drivers/misc/mei/pxp/mei_pxp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/pxp/mei_pxp.c b/drivers/misc/mei/pxp/mei_pxp.c index f77d78fa50549e69f0a0873b..787c6a27a4be60f9322c6aad 100644 --- a/drivers/misc/mei/pxp/mei_pxp.c +++ b/drivers/misc/mei/pxp/mei_pxp.c @@ -84,9 +84,10 @@ mei_pxp_send_message(struct device *dev, const void *message, size_t size, unsig byte = ret; break; } + return byte; } - return byte; + return 0; } /** -- 2.43.0