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 2EDE7C433DF 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 061B3207FB 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=wi8uebux5YbmHFKfAY8mh5M61BJwWWlmna4KtFj9bQw=; h=Subject:To:Cc:From:Date:List-ID:From; b=BHqsf+Awm/TGPXnGKqwEteWEb1UzZ/uJXlvrGkeLV6445k4YjYWe3bAhRKnBCSG8J zRRizE2pVcrVe5PktJmEWn3pPoVXNxv/3SFrXwg0urusqkBkiHzTt9qkIICKYnIYRB VHspk20OhFsR8peI+rFAoj+Q3VeKenr6nmpfTYw0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726309AbgHTIdm (ORCPT ); Thu, 20 Aug 2020 04:33:42 -0400 Received: from forward2-smtp.messagingengine.com ([66.111.4.226]:39605 "EHLO forward2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbgHTIdh (ORCPT ); Thu, 20 Aug 2020 04:33:37 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 9C5041940112; Thu, 20 Aug 2020 04:33:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 20 Aug 2020 04:33:36 -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=wCfjGm Fj0ZQpy2kta/8FJn0e4S2eLw0Gmyv1uXKpdw8=; b=h1R8nlgCfbRhdyKaI4WKdi 6avo8ijkpJCMmBoRHO+cdBIv1e5Lttmj1wP3zlDs1wnRMQopD5CYMpKcCWb6WpFQ BxTDIw+xwPHJ/NqY0sfbsN0H8H/z8yYxwM4GChJh91A38Cv7hOveSPiSWLp1YBoz wLjZHs/xF5v2BwlbU45B7J4q+Xv6ZrXmOerTElM0T3Q5abO/2r/McGQDjlv39IZ/ 83nqo6dmQJkMuVoUv+LLherHEuDDmb9Bh2gV0b+X7Ab2BPFkn2PhJ/y8EdunIju1 J4/bIX3JLbNOxw1uOcXHWHx4z91wyTxGT6I1j99VEwJV+Vwsjg8Ln9/KeWhBA+bw == 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 3C53D3280059; Thu, 20 Aug 2020 04:33:36 -0400 (EDT) Subject: FAILED: patch "[PATCH] drm/amd/display: Use kvfree() to free coeff in" failed to apply to 5.8-stable tree To: efremov@linux.com, alexander.deucher@amd.com Cc: From: Date: Thu, 20 Aug 2020 10:33:50 +0200 Message-ID: <1597912430214153@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.8-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; }