Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1875938pxb; Mon, 13 Sep 2021 07:21:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu5w4uYgq7AZgjkTtyA7iwX/CnkqO/O3MORCkQWHBFA9X1T13ecC5gaHVimeBtI9UlyX/7 X-Received: by 2002:a02:19c9:: with SMTP id b192mr8494708jab.67.1631542918788; Mon, 13 Sep 2021 07:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631542918; cv=none; d=google.com; s=arc-20160816; b=xDbhgJWHTjymwblSPdNIvdK7fozdQdsePdtE4syNaT8P4xy2p6Sev6DGkY7N42JnmQ jEBwwztcXQW0DQmVK8vMbNiJDLFVHRrQf9uA0uGSW72u3eci3gLpZn8hOKMGxZST8jfu EUKNpaPZX6wYvrWHhxcwB2no3BNKbiQvrLt4l3XOsgErISWa7NlrTRxCECXnP44SVold RnOB6fIzLReSL+rGWkA8cNfXTFnkCPY7TR3WEv8a1Edo8yrpd+NaQpIHIrzhFz9e2dbl NlWsqgWr0kbYpnl3J+Ww2fcFLD/nbHMS3rydy/rIlVFDPILT2y0S3I+obz8D8iF2i0JV ZM1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=euusKLFlrZV6Twi/Ck34Z0uAwFedhrM2MkOrTeEkpiM=; b=0MqhdiRQ6WZPAqmolSa0wgg8LW+488O4V3b5h+RR+b2DKSTvJf73YOnfTmVa2K8WZq KENaHTIOET6Hdw2TTI6fVGfcwhTVML3DQ/hZozbKPtWTCsCEH+fV1dW5Sd+r2bTrXJFM ZP6VcbcJbic3ZWXxRxwNJtN12ksQZpdau759GjtSYuW55P9RJbFjUSL9/5ABi7jqMUn8 2VG/SwnXb2inbQWeojtEJdfhdi+F52Nw1gJZ7CyiuFK7h+64uJJpmgVRRh9RB8KMjH9D SNzAubSEh8EAetIJUudPM/CnPmR59pm+uhMpIEMzSyfZMvpbKuLtr3owbld4TjsSAuLb xvIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aFI1tryK; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si6063025ilc.102.2021.09.13.07.21.46; Mon, 13 Sep 2021 07:21:58 -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=@linuxfoundation.org header.s=korg header.b=aFI1tryK; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345203AbhIMOVP (ORCPT + 99 others); Mon, 13 Sep 2021 10:21:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:37124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343722AbhIMORM (ORCPT ); Mon, 13 Sep 2021 10:17:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B029661AFD; Mon, 13 Sep 2021 13:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631540701; bh=9Y0OFOHCezxPl7N3Kt31p5suLdAPHG/POeu+xZp/3vs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aFI1tryKb9njcoFAdDMUpAuSd7RTrdu7OWYbE5XrlTUYYr7lGnqY6qMtaa/8W18Me kpWSsRzbmdP3sp3QoWvn62mgJIM7OeZeE2kETEyJ8Se3TMC4gzBt2YA/zYiBSUmX0+ jBOuE/mjolTv08cmg0xV2KgqwRo8Hk0y/JNMDelo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Lars Poeschel , Miguel Ojeda Subject: [PATCH 5.13 268/300] auxdisplay: hd44780: Fix oops on module unloading Date: Mon, 13 Sep 2021 15:15:29 +0200 Message-Id: <20210913131118.396647981@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131109.253835823@linuxfoundation.org> References: <20210913131109.253835823@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lars Poeschel commit 333ff32d54cdefc2e479892e7f15ac91e026b57d upstream. Fixes: 718e05ed92ec ("auxdisplay: Introduce hd44780_common.[ch]") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/lkml/CAHp75VfKyqy+vM0XkP9Yb+znGOTVT4zYCRY3A3nQ7C3WNUVN0g@mail.gmail.com/ Reported-By: Andy Shevchenko Signed-off-by: Lars Poeschel Tested-by: Andy Shevchenko [added Link, Fixes, Cc stable tags, edited message] Signed-off-by: Miguel Ojeda Signed-off-by: Greg Kroah-Hartman --- drivers/auxdisplay/hd44780.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c @@ -323,8 +323,8 @@ static int hd44780_remove(struct platfor { struct charlcd *lcd = platform_get_drvdata(pdev); - kfree(lcd->drvdata); charlcd_unregister(lcd); + kfree(lcd->drvdata); kfree(lcd); return 0;