Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2400452lqp; Sun, 24 Mar 2024 17:55:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZfof/XVSAQnTRfOlREZv03POrbvgLnnItxsNgrZiqAtwiEuLoZbpmjfvHlWrjJ812+myPPgNCZS/XwHn1u05lyYZ6UYRFLGaa7Caf6Q== X-Google-Smtp-Source: AGHT+IHZj0Fvj/ZlNCaVZIvDzM2iRkKINyki56MZzVcK85CJ7izpAOLBghPSt2QBqw2n/fKdowfX X-Received: by 2002:a17:906:b015:b0:a47:3527:96d2 with SMTP id v21-20020a170906b01500b00a47352796d2mr3813327ejy.0.1711328103536; Sun, 24 Mar 2024 17:55:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711328103; cv=pass; d=google.com; s=arc-20160816; b=Eym60oyvSD0z8oRdn5ZMcJKvYPzsVy8zQsgHlN5rILfoJ2U+gajVT+hroQoNM4pEwR qDqO9oAxSSYDvLv82VJqoIStwOXjDZ37jt/+fewzvTb5qYs7E72WEjLoqodAvRXVz04N FLLgqDbMf92qzclGtcaBB/dFMsxiuYHRq50voWesQcN+tyTfCrbG36L2/k7ggFFVAB4F d4iL2NK0BDJm/FQJ7DLJbmDNASYiM1uyCdANMDgvg+bQjJ5mO2O3jxLP5dB8ACwgRpCk x19lKLOyDkAITtDSPaUIvD1trmC48hYtVsLsXZa6yG1JEXzsrV7vdZPQKafRbEOEdiyo 5Vmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Ppj1HZ09vdVJ0VPU1JdbHEBIHjpHW/HTDxer1BvJ5pA=; fh=5TE/rA5/JSGbSD6Xt0tYtjAs+IUCoKXd/JcY0PMG+/I=; b=hugSARvUodguWRjB3N/QpZQmcVUlqPeIIK3Bt9K2CAkITnrNebB2ywfDZhzhIW+ggc TwoLz5T3SU7y4q58imvf0RMlFlXnRCenaTotQh+DNeNg6YaRRpA/KOSlbX2tSShivTxI 71ndejPncgShkq1cceDBZ04okuUIjS6rUaq4pKLgJJ9qToVcevKcicHz/afbMIk7Vo9R 1CJ0C79qIvUTrOVp8xucPHXr3OE53dRbPZsXa6TncjDIWJKqXZ7GZPs3YAnEUdFfOb8S VaUl4QO0s5GciH75bitShZmrqmkMJ1Nl+0FEK2o7HBgfaYqcz22UWfsQfqhFPxkwKtER CjQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GEeMDeAS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r7-20020a17090638c700b00a4657cc568asi2114013ejd.505.2024.03.24.17.55.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:55:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GEeMDeAS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 483EB1F22482 for ; Mon, 25 Mar 2024 00:55:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AD3E1BD052; Sun, 24 Mar 2024 22:45:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GEeMDeAS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CD651BD030; Sun, 24 Mar 2024 22:45:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320317; cv=none; b=G8S0dTAmMwXqRMuRWAXufXXy79Xcy8NxxtwOdvyj8SGtK2HneJD/ajKLGG98BOY/DH3FnitFFV0pEb5w3yNtmWcbuKOyTp6gDq9/abEpAeRheyv9QZZHxiGPh3kL+lzwv6+SsbDHOL4JlIZlajioBmlMWumF1+heS3nvM5iAj/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320317; c=relaxed/simple; bh=bi5hRMZZ6dmQWF3G3tWajxwBJIbdfbU1VvFygoXUibo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H0UtpnstiFyBDKdtaXs2+jcYBzhK900nxJRUJ1VYTGFHaHGTHPNw9ixy9u+KN+zesx2Ay8BwGoAko36772i2cpQJdE98/q+x1cfMKZM70x87nbRPRS2ZgaQCfw4CkEEquJHt2kanPpuNtRWIWBYjk1S9Qty+F0dGtR6XDjIi9TE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GEeMDeAS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 627AEC433B1; Sun, 24 Mar 2024 22:45:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320317; bh=bi5hRMZZ6dmQWF3G3tWajxwBJIbdfbU1VvFygoXUibo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GEeMDeASbUFHoEqXbg9KqKVxPb/V4UQTeNCL9P7kkTwDqbiZMZap6jcTnv0//tND4 g7ku2w6ZpCVRk5daBI4JCVwIibWeDEQdih3LOXUH5Z5w1yiwvJAj2pBLdRj4nXGNq5 zbw5Nhi3nK88xKyCKvZB0MAeQHuPPsH1JoPZVU8+wPAFpK9DQDvIcPpRDUUAk7XmPx uAAkkAJ5yt87CCyX67plTEavZyozTH914wmMnBKI/OodXrE4fAv4D5q+Uhn+VcR5RF MnuUaXWT+YzRh4fw3MFYdcEU11Ko3dg1w+A/9cObHAAIDK5Oeb3Ic4zzX4M59XZ0w7 GlUQVyH8WWZww== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dan Carpenter , Manivannan Sadhasivam , Sasha Levin Subject: [PATCH 6.8 625/715] bus: mhi: ep: check the correct variable in mhi_ep_register_controller() Date: Sun, 24 Mar 2024 18:33:24 -0400 Message-ID: <20240324223455.1342824-626-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Dan Carpenter [ Upstream commit 27711860c54ccb5e80719df684f49f0bf3f8fb51 ] There is a copy and paste bug here so it checks "ev_ring_el_cache" instead of "ring_item_cache". Fixes: 62210a26cd4f ("bus: mhi: ep: Use slab allocator where applicable") Signed-off-by: Dan Carpenter Reviewed-by: Manivannan Sadhasivam Link: https://lore.kernel.org/r/bebcd822-d465-45da-adae-5435ec93e6d4@moroto.mountain Signed-off-by: Manivannan Sadhasivam Signed-off-by: Sasha Levin --- drivers/bus/mhi/ep/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/mhi/ep/main.c b/drivers/bus/mhi/ep/main.c index 65fc1d738bec2..65f1f6b9b5df3 100644 --- a/drivers/bus/mhi/ep/main.c +++ b/drivers/bus/mhi/ep/main.c @@ -1496,7 +1496,7 @@ int mhi_ep_register_controller(struct mhi_ep_cntrl *mhi_cntrl, mhi_cntrl->ring_item_cache = kmem_cache_create("mhi_ep_ring_item", sizeof(struct mhi_ep_ring_item), 0, 0, NULL); - if (!mhi_cntrl->ev_ring_el_cache) { + if (!mhi_cntrl->ring_item_cache) { ret = -ENOMEM; goto err_destroy_tre_buf_cache; } -- 2.43.0