Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp365852lqs; Thu, 13 Jun 2024 12:16:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2X2mqx2prG+yVA0LIV302/IcmXDX5C4lEPbzhgzbbRwkbWzx7gojLDx+8NGC4GiOU/0T9l2Y+JlMKv6RrEz4k52tAsQizTkBgdP6E2g== X-Google-Smtp-Source: AGHT+IFZ78ecwdilefohBAiNbvf7uTeCxrscqLYlkzJNkCviHh95ym8W+zyyUwEX7y6nIao8uKIz X-Received: by 2002:a05:6402:1ecc:b0:57c:758d:86ee with SMTP id 4fb4d7f45d1cf-57cb4c08d3amr3594111a12.14.1718306166661; Thu, 13 Jun 2024 12:16:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718306166; cv=pass; d=google.com; s=arc-20160816; b=qzMXaFw5kSTLz/o/+m/k5EaIKFdOSrY7exQ3LqymVzqHz2H+Sk7TPGpch4OxMg7zar RLzWqXOPLcg8F1eov97IaQKshY4AVr0C1l0LES0NYY6qgkhmDYXOoni6y/wDe6W6Cv/M IYqlw8k9dmf5vyhQAqOeLa+5tsAM3vTqcOTclnhfOBxOJ2uA4X2MRjODNXB0S2YhPfZr rquRjReac5fQdyTJWD8SmeGFWfsiJoRX5603J5M5jFrs6sJvTsFRos0M1rdFmnxevRPA 95gLatKv+RxTsIpl6VEsAzqnQKUDkxDH6q6GGe6YtfVTaezO/UAu1cuahxY0yaQ3zOv0 89PQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=p7GSh5AJbu1HIUJECGqYLdu+1gbsYjlaIo0jC08KkBw=; fh=dMZgEoU+xiOTBSfNuWN7lQwaK0ADtwN5K7DOc/E+qlM=; b=j9d7VToaOm/1+8zj4hTs7AoaTQEqMwqATOUFZ2LbayuKSvSucYE8Dk0h5VCBHV0t/W uyg4d/I/Al4npbgTn9ojjQ79bkfo44tFN8D7QedV08HDqocEayW831ja6DGizaCjEG/D heV2Y8eiSpbSdSuC2K0kT+qmwTm56v+HIpv45Gf9lwSjoJDliEPVDKwx95Q6S5FJQyNN 6710qIiiYB1LlVTRSfyZOq7jPtYWnK1NFgu/3E0wlxarblejHOImRpyj/fVwra8cKqRF 0OiGJJo69nxFCA4QF8OJgPwrcUxMBCVvbdXmXBFloL25O/e8lYlp6G29RNOkWj/pGAx2 1h0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b="qQioH8/K"; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-213892-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213892-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7447754si1023752a12.434.2024.06.13.12.16.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213892-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b="qQioH8/K"; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-213892-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213892-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.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 5E3311F24269 for ; Thu, 13 Jun 2024 19:16:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE41714BF92; Thu, 13 Jun 2024 19:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="qQioH8/K" Received: from 009.lax.mailroute.net (009.lax.mailroute.net [199.89.1.12]) (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 7CA202F50; Thu, 13 Jun 2024 19:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718306147; cv=none; b=i95OW8wzvflyvLhRC93I+JfDk2YGcIJydlWyE8wDEKAZ4UuMA6Tvgq0WW6QgCpaQGyGBKdR0lX+YGAI+58DhDxbdy01nPvuWplt6L3bQEgABGRFwHeAWUSxZHPvrb6SpHJ+jYTd2Q2x/eyXCLrbhajbx30rTsRo4+O7ulizZ49E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718306147; c=relaxed/simple; bh=2hYJ1+rDlXCuBR0CUzbbS2iEQjVVQVKf91ppyer216k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=T1/O/qU95psSvSqYYzIoRq+JqJYnXsOt7rrg4UR1TJDA4fwEep5RvS2Zw+LVpQNixyX0uLPxijJfwI9U4pTf85PTMqWMX1KyAy48u8bRRuc+0/iraUjWc51+/hkW9tRnFo6w1If7xoMJ2SRxhThbsZZ9z0dUCNkbqiMKtENOL3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=qQioH8/K; arc=none smtp.client-ip=199.89.1.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 009.lax.mailroute.net (Postfix) with ESMTP id 4W0XDq3Y9WzlgMVW; Thu, 13 Jun 2024 19:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1718306136; x=1720898137; bh=p7GSh5AJbu1HIUJECGqYLdu+ 1gbsYjlaIo0jC08KkBw=; b=qQioH8/K5NkFNarm8vJpHj+GK7kRyPZX3b104AMj mbsc6DDCg8i0Cn9oBzrU4fkhU+jc6gAPmWMz59G/exyiwPBxMjScTPjKTFHEPnV7 5eB7HT5YwCgGdkZCEByxcxM3B5e0Ek00dHYbHBtAONpWsQUkry9+k2DSmqKv1dNO e1d/y86AlL8hgsqWo82x4sM86F3nOBCEceiL/+XoS4Hn/2j8pmULR1pfI6i0VeUC r3SdoJZj1lUKyUegQmgIS1GjiO3G1xC2d7nnzvooytXLqAs6wUPBtXVCEZecMMvc 2Eu8EDLQ/uAfu1ScdgZeSCTjTpXCBmiKNyaBy3LbWqz/Tg== X-Virus-Scanned: by MailRoute Received: from 009.lax.mailroute.net ([127.0.0.1]) by localhost (009.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id wZM3m8HDnaEw; Thu, 13 Jun 2024 19:15:36 +0000 (UTC) Received: from [100.96.154.26] (unknown [104.132.0.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 009.lax.mailroute.net (Postfix) with ESMTPSA id 4W0XDl38K1zlgMVV; Thu, 13 Jun 2024 19:15:35 +0000 (UTC) Message-ID: <812c519a-1a00-4ace-a0f7-d8c587f7e59f@acm.org> Date: Thu, 13 Jun 2024 12:15:34 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scsi: ufs: core: Free memory allocated for model before reinit To: Joel Slebodnick , linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, peter.wang@mediatek.com, manivannan.sadhasivam@linaro.org, ahalaney@redhat.com, beanhuo@micron.com References: <20240613182728.2521951-1-jslebodn@redhat.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20240613182728.2521951-1-jslebodn@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/13/24 11:27 AM, Joel Slebodnick wrote: > diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c > index 0cf07194bbe8..a0407b9213ca 100644 > --- a/drivers/ufs/core/ufshcd.c > +++ b/drivers/ufs/core/ufshcd.c > @@ -8787,6 +8787,7 @@ static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params) > (hba->quirks & UFSHCD_QUIRK_REINIT_AFTER_MAX_GEAR_SWITCH)) { > /* Reset the device and controller before doing reinit */ > ufshcd_device_reset(hba); > + ufs_put_device_desc(hba); > ufshcd_hba_stop(hba); > ufshcd_vops_reinit_notify(hba); > ret = ufshcd_hba_enable(hba); Please add Fixes: and Cc: stable tags. Otherwise this patch looks good to me. Hence: Reviewed-by: Bart Van Assche Thanks, Bart.