Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp227166rdb; Tue, 16 Jan 2024 23:11:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzmqLZEuTwqm/ce/rquL0n7pQXPLWTpsHCHlB+bPcMBO6ndl6bw4WWm1IdlqGJCNbH3Vdx X-Received: by 2002:a05:6a20:c88d:b0:19a:b80b:59a0 with SMTP id hb13-20020a056a20c88d00b0019ab80b59a0mr3851090pzb.58.1705475475597; Tue, 16 Jan 2024 23:11:15 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id kd12-20020a17090313cc00b001d45b0d700fsi12276603plb.226.2024.01.16.23.11.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 23:11:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28586-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; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-28586-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28586-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EEBB82869F2 for ; Wed, 17 Jan 2024 07:10:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B35D18F5F; Wed, 17 Jan 2024 07:10:51 +0000 (UTC) Received: from zg8tmtu5ljg5lje1ms4xmtka.icoremail.net (zg8tmtu5ljg5lje1ms4xmtka.icoremail.net [159.89.151.119]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3B475CB0 for ; Wed, 17 Jan 2024 07:10:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.89.151.119 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705475451; cv=none; b=oWUSoHlCYw8cbTaqVy35Rh/t9oNvjF2jB8qwoRpSp6LuEsiaeh6tfU/3GDsBCBOMTzVOPlidhrTj1eGNzCR499ohfDJhRu1BbeZp3+HeVoW8Y1wrNjLZ8mimkX9GNFkDKhqi6SL4XX8h7wSsO237jt51tq3KJiPkuro6Yu+9Hqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705475451; c=relaxed/simple; bh=YkIm8CNeK30PQLyTJTvMvjL/91juIuAtd6vXq/Zu7yQ=; h=Received:X-Originating-IP:Date:X-CM-HeaderCharset:From:To:Cc: Subject:X-Priority:X-Mailer:In-Reply-To:References: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: X-Coremail-Locale:X-CM-TRANSID:X-CM-SenderInfo: X-Coremail-Antispam; b=DzSQmXL5/EqGWHNOQKbHkkyIOKV1wKaCCzj9mz/wXrBLo2aPFPIMl+QpQmeO/jCyrSXOMMJX4bVIZl1QyqSsPNGWitv8Ft+2UA/8aJFLzgRw4fT+AxwyeoTTUGcQi1qeijTMWW4BGMWqKcN6aTmqQOmvqSejrzc/DY0tTOdtLWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zju.edu.cn; spf=pass smtp.mailfrom=zju.edu.cn; arc=none smtp.client-ip=159.89.151.119 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zju.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zju.edu.cn Received: from alexious$zju.edu.cn ( [10.190.68.184] ) by ajax-webmail-mail-app3 (Coremail) ; Wed, 17 Jan 2024 15:10:19 +0800 (GMT+08:00) Date: Wed, 17 Jan 2024 15:10:19 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: alexious@zju.edu.cn To: "Qiang Yu" Cc: "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Daniel Vetter" , "Vasily Khoruzhick" , dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH] drm/lima: fix a memleak in lima_heap_alloc X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.4-cmXT5 build 20231205(37e20f0e) Copyright (c) 2002-2024 www.mailtech.cn mispb-4df6dc2c-e274-4d1c-b502-72c5c3dfa9ce-zj.edu.cn In-Reply-To: References: <20240112084750.3729837-1-alexious@zju.edu.cn> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <397c98b.49eb.18d1641ad63.Coremail.alexious@zju.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID:cC_KCgA3XztcfadlY08uAA--.5780W X-CM-SenderInfo: qrsrjiarszq6lmxovvfxof0/1tbiAg0DAGWmzmEUIgAEsS X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW7Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= PiBUaGFua3MgZm9yIHRoZSBmaXguIEFzIHRoZSBlcnJvciBoYW5kbGluZyBnZXRzIGxvbmdlciBh bmQgZHVwbGljYXRlZCwKPiBjb3VsZCB5b3UgcmVhcnJhbmdlIHRoZW0gbGlrZSB0aGUgbGltYV9n ZW1fc3VibWl0KCk6Cj4gZXJyX291dDI6Cj4gICAgIGRtYV91bm1hcF9zZ3RhYmxlKGRldiwgJnNn dCwgRE1BX0JJRElSR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