Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1250479lqa; Mon, 29 Apr 2024 03:00:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUERR8pcjrHI5eH3x4uGl5e3Fg49aDlUGErInG1E3jjNJj0+GPwAEWgJ6Fcj2NiXlbHz18OMUDui6X9k9SDPC4xXaZ+MICqXuV01gr9Pw== X-Google-Smtp-Source: AGHT+IE7gX72wJGM5q97/WS3wROGnwurEuh77KKtycyjN/jjwvJZKuHDtJnCa3svzJjEwyXzjrgg X-Received: by 2002:a05:6a21:329c:b0:1aa:5a89:18d7 with SMTP id yt28-20020a056a21329c00b001aa5a8918d7mr11450173pzb.19.1714384829509; Mon, 29 Apr 2024 03:00:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714384829; cv=pass; d=google.com; s=arc-20160816; b=JWXzLvrxW6uykmjvbnGFe6DTXVYYHgcdLfuERiOfN2dfgiNFOboPsC9dS3JuxdVBY0 iB+plSgPjv0nSLAel4L8PWiIgcOQ/X796Jztj4wZdCrt6lQa0FF9lffIKO6zp4DNYGEz rdTzgV9awZtekQ+dpsw71K1hOolBb1G+5W41fhTRddESQPIqG1cD/by85nzKRKPi3NLs DixL6QcpHbXHyN5U8UnGYZQeaZ3X+eZZwcdPZpVO5o+2SR7+MvT6Se9aKMojcFiiYSuN 8GIJwjh2BJaEDF9JHfVR82ZTkPCbFy7YeQilLPfPpMECJP1cdeGOe8J+skMWAXZxuB6q oeYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6herh9L8Ye+/rY/8ZqWIyzGEwHPKIW0DS7qwT7CViEU=; fh=J3MGEHbae+QR3nugAkoak/HDakzqA/GxK15YUduBYR4=; b=ksebvAkgAJ1MN8mh6rn2fmyxxmWsSkb4GZB7DuCgnLWHN7sEBnaKAH05FkjptTMz9n XDznRf7gd/5l0ImFBe1Woijtwxj2f7yGqqA/tqkNC9gt/H6fbMU7qIwHtxHokI6pVX4D AwE8Iq8H6BtugcWTkDnMwVB8h3dw/6kJFN+Ym5wdUBTYihq/4mQqTJa7ehifXb61Q8K8 0YCsdXW3lEUOXS/oFva+mVoFVqmDP9cv1zXTtq0enhFOF9eGN8GpMajfm3D+MA3ntoNM 4tOt4BCecm1uN72Kb8TBuXTN4utT1Qrv/xlNScnoF3Ws1xVaoB5Evo9XF3tyVjOBuaEc 13+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XuGJYnty; 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-162013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k132-20020a62848a000000b006ea93e60f84si19519504pfd.191.2024.04.29.03.00.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 03:00:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XuGJYnty; 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-162013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162013-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 298A1282BAE for ; Mon, 29 Apr 2024 10:00:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 432D129421; Mon, 29 Apr 2024 10:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XuGJYnty" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 D058D2942C for ; Mon, 29 Apr 2024 10:00:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714384820; cv=none; b=LRO+XTpUW+3oxL2K4aNzrG7ScOPO+2yQNPxtjMKuhTTHYA7UfkjKO18GFWR8qN4VJP6eQ0fhlk8QoW1dj0DvQ5GRtlfepQongqtntry7KVv083GfYS5o0YtXCoAFY5okAA2HU4k929OJJTBn+Gh6xVqQi6CbROJtqzSIWmQZFrk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714384820; c=relaxed/simple; bh=/dZqyz1It+w2R7umVEzwzcTipCzDfzUlkwHTD8s6SOo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KUcHXWyt0TAEt9V3ENecQFQSjaGX4R7YK8W/xgtebDT1BKGBvEEbuWBI6wYCx2N35bfN0ld28C5b8Odd9dUis0jlQC//0QJNY2SmVhCD9hRt6J7O+D9ljDg/eycOk1i8ArIvluX8pV9YZr3koMX0cdmzPUu0+FeB40AlyvcJewk= 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=XuGJYnty; arc=none smtp.client-ip=209.85.167.48 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-lf1-f48.google.com with SMTP id 2adb3069b0e04-518a56cdbcfso6604191e87.2 for ; Mon, 29 Apr 2024 03:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714384817; x=1714989617; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=6herh9L8Ye+/rY/8ZqWIyzGEwHPKIW0DS7qwT7CViEU=; b=XuGJYnty+ZRGrIATEfSFGRS3XgebTfwirFADxAQKjI7u7kZRf6ugFzo8E2Ns8tq23n iDe1l5s228aPfXQZcnwCVmw8DF3bcAfJhe/CeDaJi7UIstQMwW9oubAaYCBVvp2wtFZO vcO7mwBVZGveMMEc/0rEzISnVow4/WMB+JKhnX1SS9lK95+LJjD5iOT9yicwLGqS3+jy a0FiYVYH3ASWjME152KcEP8tYwJhlV1xm7BFar17nJzvslq1TLK42k7AODtioh5L1TwX mQj+EGo1oC0YNxQ2wpDutTrOSaP19cmogDUT7/7zuhRYHlZ5YgUN9GeO4htMSSqT+UY1 24tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714384817; x=1714989617; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6herh9L8Ye+/rY/8ZqWIyzGEwHPKIW0DS7qwT7CViEU=; b=diizMuhVSrn/DIGkqfX6tTsQmYn67wbCo/tKsCYwzZOVEL4YH7iBe5v2JFcNYaCsvn uI2LChB705KNSxoi7u2YSfV1R/GAR8Vlj854yaO9c65nL/NUMwRPX5GYqvEH090SWpFM S0w13wEESeNCoxFwxebKvAAoAv/gjbCoOVH1ykJeJHMQPKRLoUY1jrS7Shi4ku1v+j3e DziUauXaCfRBViYASyGhqACTuTK5CtcIlRL4mg12GjkwChwaaeMRHc+UOpAR01RFa8qH ixAebrcQ/eqVSEveHeENu5OVUL79rCLGMrYrlTqSIp0nAvScl7nLBz/UW7WWg5DJv7xZ Z0JA== X-Forwarded-Encrypted: i=1; AJvYcCWocq3HXm9M3PY9lPGwI25WBmP1FoQ8rmcgf3beM7J4kGu6hjZiL0PCn3pAX0lNzb4yNyN6sH0bI9Aa5chyHNB3x05o+/1IAPt6iScY X-Gm-Message-State: AOJu0Yy4ylSJ8/UiDrsFj6uFq12Lmu1JBq3i+Flqh+2us+Cbzb5QdMLo wVsHC1L3YBkKqQV+K0cX3mVbJiMfSkrxyux1WZztM0GdJ4ieV72u8w3xGlIGb4Q= X-Received: by 2002:ac2:44cf:0:b0:51d:9aa7:23e with SMTP id d15-20020ac244cf000000b0051d9aa7023emr2088320lfm.65.1714384816684; Mon, 29 Apr 2024 03:00:16 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id e20-20020a170906249400b00a5910978816sm2568ejb.121.2024.04.29.03.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 03:00:16 -0700 (PDT) Date: Mon, 29 Apr 2024 13:00:11 +0300 From: Dan Carpenter To: "Zhijian Li (Fujitsu)" Cc: Markus Elfring , "linux-cxl@vger.kernel.org" , "kernel-janitors@vger.kernel.org" , Alison Schofield , Dan Williams , Dave Jiang , Davidlohr Bueso , Ira Weiny , Jonathan Cameron , Vishal Verma , LKML Subject: Re: [PATCH 2/2] cxl/region: Fix missing put_device(region_dev) Message-ID: <9254b051-3221-4877-b6ce-68bc2bb9f217@moroto.mountain> References: <20240429013154.368118-2-lizhijian@fujitsu.com> <2ea9506e-4be7-48a2-bcc8-4ae543a7f1b5@fujitsu.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2ea9506e-4be7-48a2-bcc8-4ae543a7f1b5@fujitsu.com> On Mon, Apr 29, 2024 at 08:26:19AM +0000, Zhijian Li (Fujitsu) wrote: > > > On 29/04/2024 16:00, Markus Elfring wrote: > > … > >> Simply put_device(region_dev) if region_dev is valid in the error path. > > > > Please improve the change description with a corresponding imperative wording. > > Yeah, I always overlook this point. thank you. > Greg has a bot that responds to Markus's reviews for USB. https://lore.kernel.org/all/2024042547-shimmy-guileless-c7f2@gregkh/ regards, dan carpenter