Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp598550iog; Thu, 30 Jun 2022 06:47:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tsYDWN/4Cd0O56ElIpwY+ZGheAqltrbgQoR6Rgnh6W+NOkDL/kBjXDXkyOXlNE6mWwXoui X-Received: by 2002:a65:604a:0:b0:3f9:f423:b474 with SMTP id a10-20020a65604a000000b003f9f423b474mr7606017pgp.527.1656596826859; Thu, 30 Jun 2022 06:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656596826; cv=none; d=google.com; s=arc-20160816; b=mscqbPmPkiw60X3yZwOjHqEqZM/my76gALw4MHk2WAE4BToLsNF14KUhNO4DlQoA42 42TmtdAVEPnCXIaR9DiOowlRoC3EHyPTKsd+vYGwHrOecWeOhfa4kf4/7yTX7VrFjx62 9QM9H3eUrzuohwx+1iiwmxwE3pOqlAu/dFoKDLrJ0RR3QYDeKnw8JmYT3duz/J7HmcBX kUVLEV8R1rrSst206Kd5gJHEW0LAO6SrN4Q6lxnxs89KFoxr5SQJAdmjl0Q//2PlClfX NjQBe53voN/rYzdVagwDvE9p8eSDlEOc9ZvmebfXsB52/nxzD6wdC1VzNWpxB0vU5+7P IZgA== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=+E2d7uKkmxeTleUhEoqBjmhf7xbYyeOyiyjCFIMa9Bo=; b=DwZ2oINnklmNA2GDNn97xnDiS3S1od7OTZX73/e6DLj1GFjzx9+Z9RHkAkTR88lgsE VRculx3qYgAQKrl0QkxrmWVhqB0E7QDaZX6Vv1jImOmPF7jp7wPEh+Xel+1cpiO87ayX 8839oQ9y1jz2k8pOkbJeihME0WuCvV+XLgRCUv8xdCU/74xd9I8Gv2fu0s4lQ1y03hg6 mYJPEXUfwBwD08ks7ERexQBL023D0wPpxzh31k7/vqSFZkoJQUpG+QwV9buhcKPFoBWu t/Pp1riVdMdB6HNNdgt/kPGfp+SJ/KePMGKMSyKwjotEWgO7lpwa9wRkpBNLHWIx6Bg6 Xemg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YHL2cisN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg17-20020a17090326d100b0016215c2e4fasi24039134plb.74.2022.06.30.06.46.54; Thu, 30 Jun 2022 06:47:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YHL2cisN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235312AbiF3NcL (ORCPT + 99 others); Thu, 30 Jun 2022 09:32:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbiF3NcI (ORCPT ); Thu, 30 Jun 2022 09:32:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3025D38BC4 for ; Thu, 30 Jun 2022 06:32:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C06AB61F88 for ; Thu, 30 Jun 2022 13:32:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 500F9C34115; Thu, 30 Jun 2022 13:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656595927; bh=MQ99EA8MPq4y6QBBwwIjkqow6PwqZgEuhPY0Ewq7swc=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=YHL2cisNZD3hQ3ALsm0hnNYkJ8paM/cVAfmE28lt/JE4P7K8p7HWEZU/1i+r9zHPd S53UuyXwutDkAsbVMJkV759XsE5WCYZj3NuC+Hjea7IYXkPOd++G2Ml7k8vccj5pL8 3HPCT4pYkY9BTVXGDzciojlB8Ji6/RyAWGIpl58dtRVw366v7Ma6wqtoYEl7AEqUCA ebM4l9FaLECWzDHyOPCqd9AinIJ+VdvPKHh/cLYPfsmssha56TY4EEkoLRERP6gJxB 7YoLcBC1tnfhRO6Qb++YJQNr3VIW/Bjbbf6z/570pZYueWoz9MLVTX23n7xP9GHVhP a2UpCcShZfxTQ== From: Mark Brown To: gregkh@linuxfoundation.org, schspa@gmail.com, rafael@kernel.org Cc: linux-kernel@vger.kernel.org In-Reply-To: <20220629130951.63040-1-schspa@gmail.com> References: <20220629130951.63040-1-schspa@gmail.com> Subject: Re: [PATCH] regmap: cache: Add extra parameter check in regcache_init Message-Id: <165659592604.540673.9610049646395507575.b4-ty@kernel.org> Date: Thu, 30 Jun 2022 14:32:06 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Jun 2022 21:09:51 +0800, Schspa Shi wrote: > When num_reg_defaults > 0 but reg_defaults is NULL, there will be a > NULL pointer exception. > > Current code has no such usage, but as additional hardening, also > check this to prevent any chance of crashing. > > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: cache: Add extra parameter check in regcache_init commit: a5201d42e2f8a8e8062103170027840ee372742f All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark