Received: by 10.223.164.202 with SMTP id h10csp423180wrb; Wed, 22 Nov 2017 09:14:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMbj7/Kmuk3aKv22rc5ydOLiBkpy/tI3H+K9sfhPUv8h/zITJuojInfPCeVJCub4z5p7VGNG X-Received: by 10.98.60.27 with SMTP id j27mr19934755pfa.68.1511370879142; Wed, 22 Nov 2017 09:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511370879; cv=none; d=google.com; s=arc-20160816; b=QMOnuE6b5p9fKp9C21m8+ILC7ZhrFtqiJ7YuRDM8FC0NLQ1GyHxSSjhbfsvzF07D+e Dsc2Vjt1FzilRAYHntxitAZH52D6z99yfSJ4uR7ugcsHi5z7/TNVAL8NDvA9lM7NFsU1 6SgnY5f5wDHAWAYsL/XbECqdCk+T7HW6WrOJEiHXJuYy34WE+A11rV5eGzvZrxGwHpln ZYf4263S4Pb3uIP4nPUbECp3qSCiTXJ6IMwf0Hvhk8ltfLt2drZtg0qyRQaD21jHWyFm RjWiOKrR3y1muS4BjtafwBSZRZYs1b0LpB7rlL50b3zl0LEttxk/H95HgmY3x307c5kY OxUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=rrmUJWiQOAJnjkWuH1BKBmqr3U/axJtaLkN4uwr29LU=; b=GZzlBeYwYUOdYNYv0zTr0vsBLLD5ZI9hxlko7tPltPusjrby4HONziPi8yRPqJbb1j Q4k9ZOiIvvRMoSNXG/VepwSm79MxDaET+jebxL3j/83V3lfXOwAFmPpPjjaLVJatacGL QgwEzYvwWpHzUU7/OhpH4TyQrE+wcBEPQYRXR2s7YDFAo0miWbnhX1Z5tzW7TY3oafB/ i9rwvN9owa14sI1D0lx51dc7zlhy5Q2aGRNC3Yxtt9NyEMiqGScgzEM7ZFy9hSTG/rdI 6FqzDJOgRioPy9WIimx3Y9j/fXY7niftrwFN+ckzd683HFuDO5MCnjvxkr4y3hfboisl 6ZGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=G7DjDk61; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si13718457pgc.623.2017.11.22.09.14.27; Wed, 22 Nov 2017 09:14:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=G7DjDk61; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751796AbdKVRNp (ORCPT + 78 others); Wed, 22 Nov 2017 12:13:45 -0500 Received: from mail-sn1nam01on0076.outbound.protection.outlook.com ([104.47.32.76]:59909 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751259AbdKVRNn (ORCPT ); Wed, 22 Nov 2017 12:13:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rrmUJWiQOAJnjkWuH1BKBmqr3U/axJtaLkN4uwr29LU=; b=G7DjDk61xEOlMhuntwBgatTt/y47Jdw26TXBq0UgrwpKb1QckalDkwGrUcxAUAD0+q9lGRbyQ3p4mFw8tCroPCCxQGM9qvRp1w8unsQSFTGNQoDsxY4ZbyN05mZz6tRByPOvyNAXqvoEize/l62w767P5cEv2JxlKC9ot6/spx0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Harry.Wentland@amd.com; Received: from [172.29.156.71] (165.204.55.250) by DM5PR1201MB2472.namprd12.prod.outlook.com (10.172.86.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 22 Nov 2017 17:13:39 +0000 Subject: Re: [PATCH] drm/amd/display: fix memory leaks on error exit return To: Colin King , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Airlie , Tony Cheng , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171122164735.1497-1-colin.king@canonical.com> From: Harry Wentland Message-ID: <7f0ece54-283a-aab6-da42-9102565e8e7e@amd.com> Date: Wed, 22 Nov 2017 12:13:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171122164735.1497-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: MWHPR17CA0061.namprd17.prod.outlook.com (10.173.106.151) To DM5PR1201MB2472.namprd12.prod.outlook.com (10.172.86.151) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 22dc1fa1-c8bc-4a85-db2c-08d531cc6136 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(5600022)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258);SRVR:DM5PR1201MB2472; X-Microsoft-Exchange-Diagnostics: 1;DM5PR1201MB2472;3:SGlspktQPv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fSiPgHvR7hAbAdPECVa/ZJOp09G4lejwVFqfOhJINg68TfyetogqBlSNR7K80CjdJXyuXrPk7sFkJB9Od1C3C6siwbauMXIx/fls8qqwG/bVd2xZMXFhZcJB0kewVEgWaPp1cefJw7debv1Z81eyeXL6cZJv/cuxedh6dYXzamOpk1Qk2FfMa04MQrZo92ek7mAh+zsYgIJ4gS8GS5c6RhP2tBjlgyuJsATG+cn+bqSMIR5URw1ns9IRrrAIkX3fE+9TdQ9rIQBkFCKRTvTKa52Tjk8l6lUJaHN9nQqBecC3MpQS0ym0GQrQk2I5RkIzffmjgF2;4:qP696H/bBPS2YPcnTUKMeb7CfpO0GWNVKVU0Z7RRFt7G7bipKZ0P1kIMAAU9UspsapgBZBzrj5aLlswJGmfTA4THMgkAj3g6Q6DctBMMvF+NGeAC4DTLP1kwlAhzNZuSXPjJW7ZXDNW3KfcgzWkIBVnELQPXJMnG8Rv/dtMLwoIWu7IKDPFZauVqy4YEbvki4WvMPHYljHSlkjUeNhkL3tBe0D89fnSHLIYfRQ0saRNHmPQ717xx4e4QHcL0a0mMz24qUiT4vDzivOYKmL6h0nWcaQ/B9dnV3v77ljpZy95HJ+y4geucN3z+B4aq6GPwOYchdjdo8eGszT+3DjsTJpfD8GbUsL9WixP2ZGn/zdY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(198206253151910); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(3231022)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR1201MB2472;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR1201MB2472; X-Forefront-PRVS: 0499DAF22A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(6009001)(346002)(376002)(39860400002)(189002)(24454002)(377424004)(199003)(305945005)(101416001)(16576012)(58126008)(50986999)(76176999)(106356001)(2906002)(110136005)(97736004)(105586002)(54356999)(52146003)(90366009)(6486002)(4326008)(31686004)(77096006)(50466002)(25786009)(16526018)(64126003)(68736007)(23676004)(72206003)(6246003)(478600001)(65956001)(47776003)(65806001)(66066001)(53546010)(36756003)(81156014)(8676002)(86362001)(81166006)(4001150100001)(53936002)(229853002)(230700001)(8936002)(7736002)(33646002)(2950100002)(2486003)(31696002)(3846002)(189998001)(65826007)(6666003)(83506002)(6116002)(5660300001)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR1201MB2472;H:[172.29.156.71];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyMDFNQjI0NzI7MjM6NHdaalBHbmRMdnlWNTJXR3lxY2ROR1BC?= =?utf-8?B?TDdCZi9FVXB1REx5VUlaMlpaZGpWUG5yVENwYmtOSkFITm9zQUFGMStuRmU1?= =?utf-8?B?T3VNN0ROOElmcThSMkQ1V254UnU5cUpueG83eXpNL01GeXdjOVNVbEtUSUg0?= =?utf-8?B?dTFjWHpud05FT2V1K2gyUVFYQzlFTDdIMm1kQWZrQTBZdElRcWhzQ2JVTVRp?= =?utf-8?B?ZXd1NTJIanFWL2FhUWMxZEc0NmlQNWxyNmllQkFvK2IrMlZTUkhabUlCR1Jo?= =?utf-8?B?UlJkd1d4U3ZZSEszM3U2aXlrY2JDNEQ5QkZMbUZ2Y0xJcjcwZjF6bnNETVVj?= =?utf-8?B?MzcrZVB6TVlKVUtEcUlUbWRPNWpFRU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sDei3/ZDU5NZpX+IaZsuEtG377cG23fg7jpJ9UUk X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2017 17:13:39.8430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22dc1fa1-c8bc-4a85-db2c-08d531cc6136 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB2472 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017-11-22 11:47 AM, Colin King wrote: > From: Colin Ian King > > Currently in the case where some of the allocations fail for dce110_tgv, > dce110_xfmv, dce110_miv or dce110_oppv then the exit return path ends > up leaking allocated objects. Fix this by kfree'ing them before returning. > Also re-work the comparison of the null pointers to use the !ptr idiom. > > Detected by CoverityScan, CID#1460246, 1460325, 1460324, 1460392 > ("Resource Leak") > > Fixes: c4562236b3bc ("drm/amd/dc: Add dc display driver (v2)") > Signed-off-by: Colin Ian King Thanks. I got the same patch but was too slow to post. Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c > index db96d2b47ff1..61adb8174ce0 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c > +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c > @@ -1037,11 +1037,13 @@ static bool underlay_create(struct dc_context *ctx, struct resource_pool *pool) > struct dce110_opp *dce110_oppv = kzalloc(sizeof(*dce110_oppv), > GFP_KERNEL); > > - if ((dce110_tgv == NULL) || > - (dce110_xfmv == NULL) || > - (dce110_miv == NULL) || > - (dce110_oppv == NULL)) > - return false; > + if (!dce110_tgv || !dce110_xfmv || !dce110_miv || !dce110_oppv) { > + kfree(dce110_tgv); > + kfree(dce110_xfmv); > + kfree(dce110_miv); > + kfree(dce110_oppv); > + return false; > + } > > dce110_opp_v_construct(dce110_oppv, ctx); > > From 1584785590923131463@xxx Wed Nov 22 16:48:35 +0000 2017 X-GM-THRID: 1584785590923131463 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread