Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3094009pxb; Mon, 1 Mar 2021 01:08:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp6m+LEeoJsXScxZcVfUCLoTt9pO6fLx0r0k1sNhGfMrOSKwK/Xn0mE5Fb1b6NtnJHJBPv X-Received: by 2002:aa7:c441:: with SMTP id n1mr8680347edr.203.1614589729022; Mon, 01 Mar 2021 01:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614589729; cv=none; d=google.com; s=arc-20160816; b=tIXIueps+UBBGIwMMTJd1fp7IcdRDYyOWbGbHJiYSrvaL390ZVIpw/l807bX+GZsvE xBiY1Jmnqyy5TIxmMtp/FUW4XPisI3Qxv+AYG5VYTmYAW7/x12QBRnlC0pIAqPOqgdbt vH40+7a5bAICt53JVMzuriNF2igmcOpQB168DltmLfnoc4h5f7JmVYv9Y5Y6L2NMTSwL G+fwcYBC4ttcKhPYduot3T1MMK/R1QRiIndBixfsFWb2WnIfPTMHhRW4HDeSfOCZOKGO hifI9oRx/oqYUYm+oFSkX1BZFDWNRgxnRvRcf9mGujLXzkfp1tykbxhODjm0KcI0L5i0 WY8w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=il4HiGZKoi31y3WMW4r9xVmr67+EiikjncRTvKAOof8=; b=I6sngK2Fa9DrNI5rE9iHGlxHU8ZnKWWkVgyOguzYcXjrb9XJX9Pe9X5GK2jrBe/5B/ fDNxCuRKtAJVC187ZUNp1GAkxZBAyHPvucfLiMW++R1v6MS2RhJgPXcS4P6H4dD+xLMt l5KXpNtw1iccLdWrL8U8ENzv6ll1Gqz4wyS7HVueea0g6PUODZpoZvJZAEE9SePdMni/ CT5CVWPpZUbVkAZW9vUdav80U9WrpKQBjrx6tLVsfNDSA+kszD+VgGCwxdWBj0zV0dw3 r0aJaFz79mx2FDaqFtiYpJyUZBoqPG4+a6SCvPXv4gBpBzZX5deZejqf400y6/IOGg1y 1G0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sjqL5XOs; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si5909702ejf.438.2021.03.01.01.08.26; Mon, 01 Mar 2021 01:08:49 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=sjqL5XOs; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233766AbhCAJGy (ORCPT + 99 others); Mon, 1 Mar 2021 04:06:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:38056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233700AbhCAJFt (ORCPT ); Mon, 1 Mar 2021 04:05:49 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8612564E04; Mon, 1 Mar 2021 09:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614589508; bh=MZVQyEykFEiKaPxHXQUeHA3EpjEPE1zGkLiaitaAfXk=; h=From:To:Cc:Subject:Date:From; b=sjqL5XOsHdzhHTiiKCtrYIBrQgOpr/3ayO0gknBc4SL9+LFjL28xPTa/ucUzFGQW0 6ZEEbA+0Kg9ChBCQ/E8bVYIER3GnR5SVLyusgRy2TSydxDdZlSjxI4dWKMPaLOl00J YPgJlIAsRXAhTepPrKizFJLlnCPgxCGxfDZjH8eA3N9Dtzs5a+LryGt4qflaIwWXmA 3nx9iECPAy0jp3eYZ6kyObFu3bboNDhdBxCaDDy1LtDVPLbkm7VaGlc9nNYgESZoI+ WGy1niXjuktuT7ZFZNZHrjuivvsBB6OkeATsJSsaU1wvPK4o4hcSnL938TBdF1blzS yzvmESmpDT40w== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lGeUX-0006pG-Ak; Mon, 01 Mar 2021 10:05:26 +0100 From: Johan Hovold To: Linus Walleij , Bartosz Golaszewski Cc: Greg Kroah-Hartman , Saravana Kannan , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 0/2] gpio: regression fixes Date: Mon, 1 Mar 2021 10:05:17 +0100 Message-Id: <20210301090519.26192-1-johan@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's a fix for a regression in 5.12 due to the new stub-driver hack, and a fix for potential list corruption due to missing locking which has been there since the introduction of the character-device interface in 4.6. Johan Changes in v2 - drop the corresponding drv_set_drvdata() which is no longer needed after patch 1/2 - add Saravanas's reviewed-by tag to patch 2/2 Johan Hovold (2): gpio: fix NULL-deref-on-deregistration regression gpio: fix gpio-device list corruption drivers/gpio/gpiolib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.26.2