From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 752F9C433E1 for ; Thu, 20 Aug 2020 08:33:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5728E207FB for ; Thu, 20 Aug 2020 08:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597912423; bh=jaSrVEYhdwm0ctftsOuKMtFqslqamlolJ5aV7vwSqHM=; h=Subject:To:Cc:From:Date:List-ID:From; b=vkwvAagwDlJXkCdyTSGoGtRZWXi9LmI5ac3izOQoMQ0iCrN+3dV7XUjAG+akqGjVs 4HS4ampPPXQXn8cUgPu8W6Y/uyz7DVtDeVpAkWu0cPa0jhTTJYIaRQxwZr4IXnDHHM O0qiqDTJelVtcyPgScrjmsC79px0r0IeRgDdOCIU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbgHTIdm (ORCPT ); Thu, 20 Aug 2020 04:33:42 -0400 Received: from forward2-smtp.messagingengine.com ([66.111.4.226]:42595 "EHLO forward2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbgHTIdk (ORCPT ); Thu, 20 Aug 2020 04:33:40 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 114C11940180; Thu, 20 Aug 2020 04:33:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 20 Aug 2020 04:33:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=//QDWu woll6lWnid2oiJv0rF5soyIEFXGteEiiguMvo=; b=nXlm6ncO4cjy0BNgsTev7t 67YXU01Ra9Rl6zXbgaAf7aONfqXu3Q62kcTnZ31uof/QuK5niD56mxy1a10x70c7 yX+lVT20FHDpHRr/yhEZ4nwDttnozYPyQvFoZFBhT7aQ5ZqnTl9Tj8ax2xlbpa0A Siw/VifRjlgZVJo2Hicgbuor2qONw1nx+zVwfob+waNxD3yeYkDoIExxJYbYuBsv O16GI7IL4O/nfYa7w2e3Xy4qeheEc64ioTwdX885XC/pG9grGsXFksZ280YIah0T 3ttdjzdUAMH2FgJIpZjYycTBOzPDQ4PX4anvamZbhWTxOwxCPafD2VaNddpOjEGw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddutddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushht vghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id AB5E230600B7; Thu, 20 Aug 2020 04:33:37 -0400 (EDT) Subject: FAILED: patch "[PATCH] drm/amd/display: Use kvfree() to free coeff in" failed to apply to 5.4-stable tree To: efremov@linux.com, alexander.deucher@amd.com Cc: From: Date: Thu, 20 Aug 2020 10:33:50 +0200 Message-ID: <1597912430162105@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 5.4-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 8425400759749e23aaa831f2482b96211201af33 Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Fri, 5 Jun 2020 20:37:43 +0300 Subject: [PATCH] drm/amd/display: Use kvfree() to free coeff in build_regamma() 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 Signed-off-by: Alex Deucher 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; }