Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4646509ybg; Mon, 8 Jun 2020 13:13:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw/GlLvm5k/sP9aLuOGR7EEx4kpnLVsr7n/ZwOaBmV0uswFdDaClDivZDDrdeF65208wrH X-Received: by 2002:aa7:dc50:: with SMTP id g16mr15226719edu.318.1591647185157; Mon, 08 Jun 2020 13:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591647185; cv=none; d=google.com; s=arc-20160816; b=DjIcAms08+0KmAHPtRP5LRzhjQuzJnrJwsKLuNnPZNZKi+QqNECHzQr2v62nUdnUvl P/+8GEQ3BgRoxJ2WN98i3Z4g082pmmAmcNRpJT8drVw7fIHrSK7Xp+lsZPr2mMJdBYP2 IU/ZLIi0Pjgi19b7u3iTI5A/m084MLrD6tIWiFZhiP8klrEKk7WnHzPzpV1EYkBxN20d pe7NPRAIEHwYc4O/zTYaWbt1eIx+NX/Yi7E5UMocUEFwK2cG8VZ/JlzINZ4JyBW3e7OQ 5juw5tjuRvq6G2CFzGnSS7czQg6sdREEe8B3m+o+AaVFJdRcn4edF51RDistcreF8i4o ei3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FpmDjv/4z+bOOzMaaZCzq+OX4BSSRVwW43zPHhJ2xCc=; b=gABQiH8kyC0VFI29aXMQBpU4hQ5XEjiolIpLCMeirtCA6xAdB9L7fPCK2Jb+SA3ZyD QJnhj5jiouXXrnvkqw0IRkZQSbCp+gxDcU0a+vBkFyFwsjWUSlHZmbfGfTLFwodUQpVT Z9LfZhxYZ4hT3ZSpI9lBWZejJgHh/AJl4iEOde7vXh9LpaOZqi14OCxDDj3O7fhbpY4o UVs14k3WKWIjZA6+YJ/egBtjwahG0enwzA4hZLWDEFGMkCgczzH4uPb6nOcgo9Vf2zOe nYdHPhRdVgntbn/IUblxXzPIef1tBjKsNPB13/8GYwQaLPgdgmgqIfmLJMlZqyNNUOot 2Uaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=utBp6bAo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si9941556edy.568.2020.06.08.13.12.41; Mon, 08 Jun 2020 13:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=utBp6bAo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726612AbgFHUKv (ORCPT + 99 others); Mon, 8 Jun 2020 16:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgFHUKu (ORCPT ); Mon, 8 Jun 2020 16:10:50 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50A09C08C5C2; Mon, 8 Jun 2020 13:10:50 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id x13so18850419wrv.4; Mon, 08 Jun 2020 13:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FpmDjv/4z+bOOzMaaZCzq+OX4BSSRVwW43zPHhJ2xCc=; b=utBp6bAo/kqQ2oA4ckj15HQYrQ59JUWEqJA3Of5/uxOsvMvb4EkBFGz67gIH6xZK2F +PEezeXivKuWi4lrP5l0ZVAJa8SI+M1tbHteo9tjSDU+AgeZTgj5tkX3n8qZ9T1OfNzh fMeNumH8wGu3RzzdHeU60ieAl7DY79DaqpCrukiWirXD+vjprfMkfaz8dOqf6jCOKpCl MxI6gyJeiQJG92a+j4R9A8xP57KzuuYMYHMfvba1f7ju+DqUL9nL6tWXLZjtr0zF/ejX qCh+RwpNCgd5PEUV8qdxxJqWFfW2siV7QaWEK549z4QLR/O9omuvZ+r9/ma9TQvvvQY5 Ly2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FpmDjv/4z+bOOzMaaZCzq+OX4BSSRVwW43zPHhJ2xCc=; b=NnB2Z8UDrE/LMNznCtG8PS9aJYGBx1gRIEl24gIBkvNYeXHyi2nH8M8i8LlykFNoBu xYS8MsWp/Ny4eIu2rpAln5zBHpY3qj2EwemFxOmNLPUcYFfhPavRnulEirXPIT9MuI6i qJ4iLJEArcPC2HkjDwogOxFctCdcVu3B5IcR33K7Rq1edYSHNQ4AukAkbr4PQc2h9VmJ Hms58HQg59pe89HvJSJBoXJAm8SoLZj/R6uEwOV1xQEkvgY+XMy8enkRB/ncOCl4BFoS L2ZrtPUua3qC1g2dG0NbDqmyINmEWbKycUjqDF5gyKuc306jjk2bzbN0aBSVfutQKRmp Ylgg== X-Gm-Message-State: AOAM532RWmAqcQfONqw2htzGecZpM3bvATqZnOAm//e2+97CKrnUpm5a ghpVm3gvFMUPBp4bxx7wRpv6L2vEn6c1wFCw+dtgDg== X-Received: by 2002:adf:f7ce:: with SMTP id a14mr483601wrq.362.1591647048950; Mon, 08 Jun 2020 13:10:48 -0700 (PDT) MIME-Version: 1.0 References: <20200605173744.68500-1-efremov@linux.com> In-Reply-To: <20200605173744.68500-1-efremov@linux.com> From: Alex Deucher Date: Mon, 8 Jun 2020 16:10:37 -0400 Message-ID: Subject: Re: [PATCH 1/2] drm/amd/display: Use kvfree() to free coeff in build_regamma() To: Denis Efremov Cc: Leo Li , Krunoslav Kovac , David Airlie , LKML , amd-gfx list , Daniel Vetter , "for 3.8" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 5, 2020 at 1:38 PM Denis Efremov wrote: > > Use kvfree() instead of kfree() to free coeff in build_regamma() > because the memory is allocated with kvzalloc(). > > Fixes: e752058b8671 ("drm/amd/display: Optimize gamma calculations") > Cc: stable@vger.kernel.org > Signed-off-by: Denis Efremov Applied the series. Thanks! Alex > --- > drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c > index 9431b48aecb4..56bb1f9f77ce 100644 > --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c > +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c > @@ -843,7 +843,7 @@ static bool build_regamma(struct pwl_float_data_ex *rgb_regamma, > pow_buffer_ptr = -1; // reset back to no optimize > ret = true; > release: > - kfree(coeff); > + kvfree(coeff); > return ret; > } > > -- > 2.26.2 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx