Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2180340rdb; Tue, 20 Feb 2024 22:21:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWHTIcXQ9PkVzEqSiYSSIfaphiKM64hbeujoc0yTfNA5Ub34WPL+XtXgK4CibSGlXOkXPEgDfFHVVxVtbNnr4JpARI2BHLuYGtkVXK5Cg== X-Google-Smtp-Source: AGHT+IEbu5SY79nCbtP4jrFVEPHGsKc8eAhkWcr8pWwcwmFQLeeB1YpQQmFe6OROZfO99dwjCYvn X-Received: by 2002:a05:6a00:139e:b0:6e4:6187:a7d8 with SMTP id t30-20020a056a00139e00b006e46187a7d8mr9891099pfg.30.1708496489900; Tue, 20 Feb 2024 22:21:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708496489; cv=pass; d=google.com; s=arc-20160816; b=YgV/H5zQJU1LbOLYvXn6HkVSv2gcVlU6RwVj/O6Y9nCOh14RPyt9e1PNPIbyKrGzNJ Su1FUYoKRNW1h8mWi3qCyXYsHKFe3hX9srjH6ffa/lbYG4WXvOoCg8PDEU18B+Rk1Yxz Jq7012tuPnRFQ8fRrcsGRsJsNlryjfmyGzQOlQPcaQGgdVOpajVMd0nlU8rWcYUgfhcu ey7D9KX+CaRhV+w9W5WdYa45nC+tcnCHzQxLztBTeuCFxA5rfNNOaG2svGJvvYwqSpnK C9FuKT8B4FHoaC2yA9jW61AzVqBbHMML1XQ3NkpthoBKRboiTOcvCB2Lkv6Y13BV3UVs KUvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=z7BDvVnOFI8EfULdSJBhx0Uoarr0dwLKho4DFLKCbPE=; fh=Mev5CepT/VsxuE1tKomiEAyn2QyLuInUt4M8ea1Il74=; b=I7hcBxCabTzVfbmjsjWmASkW4GWWgecy6EOby/LVB2x4QL01CZIZp4OZEoVNpCxyRt 89iXbjUZ0VzESdUeM5cnI/FBMjecqY9QiDtcJQueqjydaX6vDScmFpQDA4GnY+95nOBL MR47s//oFYAmiY8xvLMfHCZl57Cv3ysBmr1loJgUPih6bk8+/Ip0lx+QJAnZwr6geWT+ O32u7pWneH2GVsOywGaZi1u+st5fyE1QsuOkfmL0Aa6/guoyyJ5yBfq/fgp0g36VkBHD QaUDktfYKIymJ0mbRXpflDkPYJe3doU552wXAPeo1QwFVQZWi8pZaI9jg10TXp+LTByr 7mBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m49MalvU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g6-20020a056a0023c600b006e468ec9951si4194712pfc.103.2024.02.20.22.21.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 22:21:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m49MalvU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-74136-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90669B24804 for ; Wed, 21 Feb 2024 06:20:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 415523A1C4; Wed, 21 Feb 2024 06:20:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m49MalvU" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7C2739FE8 for ; Wed, 21 Feb 2024 06:20:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708496426; cv=none; b=Namv3iySrFm04CZI4Z8Vofis+DtsCP/RLBFZVLENqZZk+BcUBftRolYBZQdsJAMjwI5xMwbDU3bMbXGL97NToTXZBZ+F92k9x5vVzR4YoHePCj7BslakLGiejG5KwZq10D3iMFY7QAaqIXjd3CmJRoY6fB46VT00KsCQ/yXGTFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708496426; c=relaxed/simple; bh=Aa84HSv1+2OvUetKNGlbuxpski5nWr6VCsHSEhRtETY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=DL3rf3Z7Ec/O+X6nMRGPVj8PTHOxEj0FYBFfudXNbMRTUFvMNqqdml80nIRKfv5CFCN5jy5MtwIbQPd/Xh1VeUt78Qqeq6W0rMZipf4IUCsq3OOLRZCDGVrn90TREpt20qAKbcOTSFBwYACKijwPE6100eBdzv2mlLFMqVocxBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=m49MalvU; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-563c2b2bddbso8903375a12.1 for ; Tue, 20 Feb 2024 22:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708496423; x=1709101223; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=z7BDvVnOFI8EfULdSJBhx0Uoarr0dwLKho4DFLKCbPE=; b=m49MalvUruAIQhB9yuPc/uMVxLpvLNAfVqHVv4KhEPUMQhYBLJRobwiUpuh8t42HdY ZJMQoNnDsIVTIN2gvvcttjk1Bi9c8/m5O6XS4ZEsVMm1ihQCeNjchr16KKWRoh8RFg3K LmGqxYNXggdcg/gRSiaNkJZPl0UrTx5qLBdC+meD+BGxSBNNrBjqeu4qYfT1rIEhp2WW zUKe1uoEiv3AsYzGmJD8RCNhP8EUQ2tFPYleHp2iWdHz9s3kjZM7Pr7058HBAB1q0GZn 3wvMVR6sfBeZdck2lbI+ftSDI8GnZ2Tlacx50uPhhpbvNX4VklI0tFjXVhRvnYBEvPGs 4Hvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708496423; x=1709101223; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z7BDvVnOFI8EfULdSJBhx0Uoarr0dwLKho4DFLKCbPE=; b=rA/bOPCOxPFWQkS2N7s+MMBeACdBr9JEHEkqbqhbW5iygVZoaGo6/Lo+G8XoPfZB2z h7XtNyPzOBxbAo8vLyRglWtRZDqQ6J73gJrse6K1UzsyWLg/GjBs4pR5FvddGZ0jqYJa +asK16qQyF6MMGix/sH0Wb+CS1TWgJG83Rse+va+JlpCBhT2v+VScSV4YGsWTkio9Z2Q QVqF4QvdKFVWhqG2LMEvi1R19eLI2h74kLn6wK5osIdQ3rIYK93JKinFnfdHom+1A8P2 gldi8hQXzF1jUI95q2OGjy99ILqerX4yxt2uzBsxtXwZs2/FlEOeVZM38yLhL2kc18AX 2+NA== X-Forwarded-Encrypted: i=1; AJvYcCWsIGvecAzbCnp5ATC84MiEBTb+r9uk/S32RSj7iDnML9tA+FH4pRV+hTtMu6OGSsRg48xKEafmbLJWAvhJGpp3iuZF1s8F7Xlc294a X-Gm-Message-State: AOJu0YyMWaqAzfwup8FzgIJVgDRsNu61H1bqQK7VznDIVTSsWGxU0jBE lwdaOp/YKnkhJK+X6vbU3iT8+LyEHcqz4crnxcFNNVETOVamkRdVKC1IuAMTtvU= X-Received: by 2002:a05:6402:17c4:b0:563:ccd1:26bd with SMTP id s4-20020a05640217c400b00563ccd126bdmr9951812edy.2.1708496422990; Tue, 20 Feb 2024 22:20:22 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id c1-20020a056402100100b0056486eaa669sm2266459edu.50.2024.02.20.22.20.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 22:20:22 -0800 (PST) Date: Wed, 21 Feb 2024 09:20:19 +0300 From: Dan Carpenter To: Manivannan Sadhasivam Cc: Alex Elder , Jeffrey Hugo , Erick Archer , mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] bus: mhi: ep: check the correct variable in mhi_ep_register_controller() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding 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 --- 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 8d7a4102bdb7..f8f674adf1d4 100644 --- a/drivers/bus/mhi/ep/main.c +++ b/drivers/bus/mhi/ep/main.c @@ -1497,7 +1497,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