Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp328270rbe; Thu, 29 Feb 2024 00:11:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUzVe3+WTSMs7nXXPFKuYu8hrqjR5yVLHxgSRcNijdMQCRk1QqZ1GsuO/oNy2ZyhzJ8C70atV4SfJN+gJ91ueCAdt1rrnsaaG11drM6NQ== X-Google-Smtp-Source: AGHT+IFxiLJUNTtEaC39MxNit9vlMCIFWcmypicVHkm7+6RcXhkjxoqBD2Ujb/D9b9/ILNJ6il1l X-Received: by 2002:a17:902:eec3:b0:1dc:b7d2:d22e with SMTP id h3-20020a170902eec300b001dcb7d2d22emr1221492plb.18.1709194267753; Thu, 29 Feb 2024 00:11:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709194267; cv=pass; d=google.com; s=arc-20160816; b=dkQzt/rsjaaLccEMpG3l0WaLIbUEDQa+7qvEuaTSA77gl3YJc3WOF3KFPV1WjpPkdF Owl1pRUa1t8htX4uE+JhlcyDDZPF0ln1HUu9yA8UIQiG8a4tcgqLQ9YqlSYt4sa3fGK1 GboA8uRg8enBdbNQnNjt/WNVC98zgUlE9OtlzEXjUx3R1G3v8K66MUVUdFbcXHVoYFXz I1wQflq5+Dh4DEY97DI/Z/Dp2eOeSle03wF899MIrLjE179mXhHCb/1bBJ10Tf8+/LHp lRdKw8DKodbXVwsPmBj1nM/KLWHkQtHfTu7otDZo3d03OwzfBdqZIBk1pCZ4DtWWu2N5 zeZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TA/v6X4Xg2DzocZ/RZlfjZRE+36hw/55xd74H5c22Zg=; fh=qs63HafnIn5Xxp6jxhplsymJfUfygEqzmh2gjl26uCc=; b=yVXTbQU1dqW7BL55apiWHquImXJAjfPP1uo4seOQJPFoFoYjIX+W+XLT3NbjR5wwP1 Em4fY9wVS11Zvu0TbIY/5fkUtC1MkwN9r9VQ6ztV2VEuJpdOKoDPXvzhXaqFTQtprgUc gBtjGcZS5kHmFGaqbCTlsd/zF72AmMd85JHozdGzjO4OTQC+WXTG53vcID/7X3iXdU4c TTJbTxkePhUH0lC0R0Nf+NlUW+n7JjhaRwj5dkvSVFXU1wPP9mxdPWUra2w2KqSgkcvi OjD+bkFJyyYS7t2eR0mYtO41Q5fXSKsBe3QfFD5NroXnAxZ/16JeUl6qBI5hvnKPmttz 7QmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y1B5+yJ3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x5-20020a170902ec8500b001dc88bed194si859201plg.21.2024.02.29.00.11.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 00:11:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y1B5+yJ3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86261-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 71FBBB24BE2 for ; Thu, 29 Feb 2024 08:05:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 027144B5DA; Thu, 29 Feb 2024 08:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y1B5+yJ3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25E4A47F73; Thu, 29 Feb 2024 08:05:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709193939; cv=none; b=NSunH6yEmbJiFTR7aZBcSqe/hHQnMl3C75HBDOGs+6NzHo2ukkXR7R+JHVhdlk6yK7iQI78uBCyWfs+ud6miHil+v5unsk3c6nY1H6ZBFZ3611bOnXYBgEWaTB9oM+1GagxV39iwZ7wYYwDRUk61+ulPmxkIFJa56m0OKPsthQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709193939; c=relaxed/simple; bh=O4ub08fowVUJaSCtr9/z+v7hMyHt9QpQVsdHz/1JMqw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ltqmJzviQP2iwTVtN+s5Ta4TkJeQqBefXasPg0m70fSmU/CNaLnWUwxyd8doQn+Sjfn8lXLhR4yCUa6Z+c8r5vH9i0HdlgSqI9uo4Tx3ATYpJ+FWdlsBdCyVMqwXbYAgF02AT1ygVHcwM6lcGkhsvvfeBfrKf4Wz/2mYvqMooDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y1B5+yJ3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99F5BC43394; Thu, 29 Feb 2024 08:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709193938; bh=O4ub08fowVUJaSCtr9/z+v7hMyHt9QpQVsdHz/1JMqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y1B5+yJ3SgmYuJ6GHA3l/OPcShytoL5/tVWLvfE8DziynpyMrPYETuIKsxtSFm6Ki 16dPttpf6r4NW9U/ty8u1YJC0IcfmyAwqNv8uXN6OSYSvEKgP0oexVbKNNfMhCrJ54 tb7KDEKBjghWDthbU7TDmdT1u/hC5z5j3pSl8GLwEYVjEMbfJq0bJTWpHs6oJ2w3u3 ZYqJVIAzDyqPyzRVv6VKIHIt69yw/2H4LqeZvaU5QEtN2Flfo3yRN8iFeGRBTpczuZ vuM/A9C8JXzb+dHyCoMn2eFnpJqxdFD+Qmk1yMfBzxuVZarfdzpUlEe10wxAWPfF4u /woioTw/skcsQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rfbQI-000000000NL-37JJ; Thu, 29 Feb 2024 09:05:46 +0100 Date: Thu, 29 Feb 2024 09:05:46 +0100 From: Johan Hovold To: Vamshi Gajjela Cc: Mauro Carvalho Chehab , Stephen Boyd , Johan Hovold , Caleb Connolly , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] spmi: hisi-spmi-controller: Fix kernel panic on rmmod Message-ID: References: <20240228190523.8377-1-vamshigajjela@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240228190523.8377-1-vamshigajjela@google.com> On Thu, Feb 29, 2024 at 12:35:23AM +0530, Vamshi Gajjela wrote: > Ensure consistency in spmi_controller pointers between > spmi_controller_remove/put and driver spmi_del_controller functions. > The former requires a pointer to struct spmi_controller, while the > latter passes a pointer of struct spmi_controller_dev, leading to a > "Null pointer exception". > > Signed-off-by: Vamshi Gajjela > Fixes: 70f59c90c819 ("staging: spmi: add Hikey 970 SPMI controller driver") > Cc: stable@vger.kernel.org > --- > v2: > - Split into two separate patches > - add Fixes and Cc stable You need to mark this patch more clearly as a stable backport (e.g. using a "[PATCH-stable]" prefix), and explain that the corresponding issue has already been fixed upstream by commits: 490d88ef548d ("spmi: hisi-spmi-controller: Use devm_spmi_controller_add()") ffdfbafdc4f4 ("spmi: Use devm_spmi_controller_alloc()") but that those commits (and their dependencies) are too intrusive to backport. Johan