Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp404232rbb; Fri, 26 Apr 2024 07:34:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+ghr7YFCofUq7U6WFKvZp1nW0UtPAY0pbXxd2udqujAiI0HYT3Cl9CtACiMfTJnD7BatHF3WQqpX6NjqPgRO2k45jbuhWxZal2OtMLA== X-Google-Smtp-Source: AGHT+IE0jSOoxzTBvRdRaU3RdI2WqJIl8BJRVOp/6Z5jRLTxe+z61XJaAuLarZAzI005h27yuPkK X-Received: by 2002:a05:6a00:804:b0:6ed:2f53:8059 with SMTP id m4-20020a056a00080400b006ed2f538059mr2996998pfk.34.1714142098417; Fri, 26 Apr 2024 07:34:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714142098; cv=pass; d=google.com; s=arc-20160816; b=wNXqNd320a6yQNIGsXaA/6vo6n8+T/p+MohbsubZ4wy7BKONu5f291v5odNoYnTVKK 9K+OTqNiQyS2gByaJn47UP6cnxZbxrqbAauyMRMGUnrkFxgv6+wjXkUjgA+tYJBzghtQ zLsZqkjD6A1nAVLR1NFO2Fc35ni3y6AoCrKBTI4uCWwuvJY5Am5Sgm7aRt4M+taQai9T 1F1NrhdgASZeOFYrDH5xcU35fRHMSHfZ3GX6mT7Fv00AUXnxEhHLraMiIyNqqNRKc5Xl 9oF/c93JAYVZzk2aZy/M+M8397GF7wOR4eOiBgNZMhFHg9f0YxoLpz37UyxMur+nUVIP mICg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=5oqbc2sFsHNtVC74lj8mxo3HcQIzHXwLtVm3ri4SHsk=; fh=Hytf+pTpazICuRw7AC/gzZcaBm92UkB7/VLmlyTUGpU=; b=c1zzwrvOxMtBkCR0zDemAh9+R067WI6RgPR4XxrNgxMZZ7uKu6r1AU3eI2I61lWQXw ZXTANM+ZT07azSSyyI1HUSBZAxsX/aRoZn2JaG3z7q7Y2xu6gyF/IrfAjCfsa6nYJ+ZV HX5ujPHhB76wfJXDuJVGG/jFhKEupE6QN9Pvm5qrxup6U9x6lfQqK8+ktH2BiK9//CTc w3+DqfNUX7e1PC3BbI7EWl1tcUm7t9nUJeGrqeioMWMtr2ndOCTl50AK7W/EBs+8xZYs 3mLZ6rsxojB1d6iUNnjjfX7fuQ3xJq66cNryokcE9XDnRlH+1shRQDdDP6k209de3Efc 2sJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C4pDxQu8; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160167-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c22-20020aa78e16000000b006ecfdcc20d3si15121375pfr.153.2024.04.26.07.34.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 07:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160167-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C4pDxQu8; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160167-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 A6E832817A6 for ; Fri, 26 Apr 2024 14:34:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7815C6EB5C; Fri, 26 Apr 2024 14:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="C4pDxQu8" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 56BA21E504; Fri, 26 Apr 2024 14:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714142091; cv=none; b=hBzO4etsK3/Rar60HgXJJzz9xTy1ZjichbZWZqE/Jdc+R+L5TYSY28rUQVMbIK7BsSfCz0y1ZtuPlyHtXbg1vEkhC74PjKfe0sA/ShHzJpAFAm2Mb0ErlMZNNtlTnZkleIzexY6vPUWW2pa1gr1b9+rbg7F9zvEbROhwHT4mzO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714142091; c=relaxed/simple; bh=UJhGAfgCa1LonBaou1hb2Cm90iAzZlg29gkrT2S6//U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MUIcA1VIRoCG9eWDh62uylAcRPBDelE5P8oUJaosketkDcwJ4jAQstsmVIE5gVIxghSnkgldybKOnMXzDvK2Ukn/klircvxurUYZYvhoOTPsbMH4eXu9ibjQKUv7GbgaKnPtcFFbG6FcH4gdkBQafXyWTsRsZyHKvNF8pKPI5PM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=C4pDxQu8; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714142090; x=1745678090; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UJhGAfgCa1LonBaou1hb2Cm90iAzZlg29gkrT2S6//U=; b=C4pDxQu8aK87C7QxleHekd2ieIlxtHCLwSUQbpmdf/U7+23wZmzvxo4B CeY5ZNqksPlZwyfTD2M30KpGv1vfM3lYj2eCrVtyXKteVh3YohU0ILfbd PpOlLS//VrhS1NhuGuOg+Gt+6iG+FIkK2RqwPc0meJdZZ22AKR4vZ0iQx iJwNNGWjT8L6ejXJrSbe2BssV266Km5kkPulhXsYY/K34qxLZWTLUB5CZ pCKib416luTTNTym66ngLEW1N5QeIB11YwABWR3vXH1fISd0GDvul/Kzu CHVcxSG4irB0i4RaRaOitASgnzzOg81A3sp4SWwupma5QJQi6noABgZ+J Q==; X-CSE-ConnectionGUID: ERyP42cRQgWQx/iS8lspPQ== X-CSE-MsgGUID: linzn3zEQFulCdJp4g+LrA== X-IronPort-AV: E=McAfee;i="6600,9927,11056"; a="27334179" X-IronPort-AV: E=Sophos;i="6.07,232,1708416000"; d="scan'208";a="27334179" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 07:34:49 -0700 X-CSE-ConnectionGUID: DOQkqHPMTae0DO5onbrITg== X-CSE-MsgGUID: CPBENSQ1QSSplDzFHksY3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,232,1708416000"; d="scan'208";a="56361315" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 07:34:48 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s0Mez-00000001LXP-0q4D; Fri, 26 Apr 2024 17:34:45 +0300 Date: Fri, 26 Apr 2024 17:34:44 +0300 From: Andy Shevchenko To: lumingyindetect@126.com Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, ilpo.jarvinen@linux.intel.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, LuMingYin <11570291+yin-luming@user.noreply.gitee.com> Subject: Re: [PATCH] "drivers:Fixed memory leak in /linux/drivers/tty/serial/8250/8250_lpss.c file. Message-ID: References: <20240426021939.1083521-1-lumingyindetect@126.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=us-ascii Content-Disposition: inline In-Reply-To: <20240426021939.1083521-1-lumingyindetect@126.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Apr 26, 2024 at 03:19:39AM +0100, lumingyindetect@126.com wrote: > From: LuMingYin <11570291+yin-luming@user.noreply.gitee.com> > > In the lpss8250_probe function in the file > /linux/drivers/tty/serial/8250/8250_lpss.c, there were certain return paths > where pci_free_irq_vectors was not called to release memory related to pdev, > leading to a memory leak. This commit fixes that issue." This patch does not fix anything. The driver uses pcim_enable_device() which changes how this all behaves. NAK. -- With Best Regards, Andy Shevchenko