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 8B67AC433E1 for ; Thu, 20 Aug 2020 08:33:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 67C0A207FB for ; Thu, 20 Aug 2020 08:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597912411; bh=BEC2RZfz2ty5QiTVAbvPf3nhRiHZzY8stP1TnfkiyUY=; h=Subject:To:Cc:From:Date:List-ID:From; b=ROQM72GO+5TITd7bUflGIT8TQ/klQhzXfQa/nXVsj0NTUyyFa89bjFHSCFnJKO8hc TduOKWOaQ8OzfbP1YBb7PTKBcJ1mvfL0R3qvqh+E3+rcfbvY5RmTZSGWDFsFGkUgbE fQ5hOroCVbHxrAPSjrHSO/T153cXOGhjhrEW1EsE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726835AbgHTIda (ORCPT ); Thu, 20 Aug 2020 04:33:30 -0400 Received: from forward2-smtp.messagingengine.com ([66.111.4.226]:35937 "EHLO forward2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbgHTId3 (ORCPT ); Thu, 20 Aug 2020 04:33:29 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 9AF80194008D; Thu, 20 Aug 2020 04:33:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 20 Aug 2020 04:33:28 -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=DRmOrj 5mzzW+/b7nxzRFYl31sKvrrNb4gW63tUKN+II=; b=iKhZ3TAt6kdvgnTm6x7Q2Z +nMrvsW/q01KIQCQHii6Ok0rPI+AR7Hn5jcaNXbJ4np9oqMvGp/9HJQQ+PsL740T goQuxfaj6bw2o+WteQ9ioN1JttFeVf3lk4evKXKZFiEgyZtGexqthKxV8AIlYlll +rE20VhVdRb6dupizu7j6OSn/xoPeAyC2YU71efbqkik2Rwz3mCWh/0fB6q4LYwc mu3vceTN0U9i1YPZ19hclTYdLCInhniUpHwnTAj96lAqu2/YAqvmXEXpvcmIkLji sYnumIRBoXsIrXrEHr1ii/vqTkgx4rpsf7IqORZs35IZT5NJ5E11rwmNwIMT4i5A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddutddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh 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 2BAA930600A3; Thu, 20 Aug 2020 04:33:28 -0400 (EDT) Subject: FAILED: patch "[PATCH] drm/amd/display: Use kvfree() to free coeff in" failed to apply to 5.7-stable tree To: efremov@linux.com, alexander.deucher@amd.com Cc: From: Date: Thu, 20 Aug 2020 10:33:50 +0200 Message-ID: <1597912430250242@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.7-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; }