Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1749406lqp; Mon, 15 Apr 2024 16:43:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWc0DeRH505T8sET4AUdVi2vL6diYiYbb1J3icojYAELbhX8LjvKJD2sO+RaW4bRTc3Y3hgBRMnrN9iadInmDUB/vgwZ46DeNXsp4UgYA== X-Google-Smtp-Source: AGHT+IF6XDVYlxGq8jEM0xAmkSFxBN74Mf0XJ8bY8iiX48t8Kid1wp0Pers/yWHtY2Dg64DAHA7E X-Received: by 2002:a05:620a:17a5:b0:78e:d319:dfb with SMTP id ay37-20020a05620a17a500b0078ed3190dfbmr12096652qkb.63.1713224616869; Mon, 15 Apr 2024 16:43:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713224616; cv=pass; d=google.com; s=arc-20160816; b=WQUw5sRG106n/tDP9birie+cZl0UZ4YxL2S3jW2saJx4q7cbwaPLXJfVEq8OyOdV9t PjIzGiAzfxlZh2d1Ke6+R9aDyV/56/hcZIrZ6NbMNBPJLE3eQk79h9knh8X0lSx2oN2k rRfAhQH+oEbA8yktbUVrYEx/Zw4uyU/tTJJegZ8F3mouAonMZxUIg9HMJuuT5vrPLFbW zsOSKa/0zSveVH3FL6PZd6E68BRiYbN17KwQU/iYbaDhUUnRHyxqc4mhSMDn8wX19Ynt KBGB/259dVHmHl0Tp0+ZIwiPIXA8g6y2sQy3eKGrxvKII13R1EbJVTpk8Wtf7WogSeOE JkZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=jOHj9DkA++YkAUM2ufqOn46bx4vIRuIQ3GFN//q5wLg=; fh=jxuASv1EsRG3It2F7RMWHEU3JVSwbvFE8csCQ4s3I3g=; b=yTEcQaYtzu/tEKUCAOXxi8/lDtyZVnFv3YIeSn3w0O55HpFR7hzF8ltm2dGSmj4Nlz zINab4RXRVS+IzTQEo8Taria0FhvFXtOD+Dh035W+HA2WOab42WyZjDGMd7T21fda9Rs vfCOVuvWDy5WAVHn9VlNQCCGA0H2tKPpkmr86cm04Fp+IfofuUcAx0S+ZD7iX/ooW4Rm GexrCaBQzAQZSOvJRG+wmiMa/rkaRkQSMIicsfJnItfP9HU909o39Kaqbd9Y5ITPETI0 6TpoWx5PijMCN+qYdSed4/uZoPaBf+nDGOxlkA0xJ9A0mTZOYzNvj2StNMZ9dEx3qVWq 03UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cd2+qi1s; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x6-20020a05620a448600b0078ec053c9b4si12227698qkp.706.2024.04.15.16.43.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 16:43:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cd2+qi1s; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146014-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 91D971C216EE for ; Mon, 15 Apr 2024 23:43:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AE4A159567; Mon, 15 Apr 2024 23:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Cd2+qi1s" 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 BFF25158DB0; Mon, 15 Apr 2024 23:43:16 +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=1713224596; cv=none; b=mF+X699dzbIMyLBknzt7rX6mXyGyl+x4MElxk4fbtQvB5G30nLhhL2hKn9qogF3GAqQshNtYb8n23/g2blmL1r/k/VQwNza/oXL2DF7viHzgKq9QJ2IyeumNrER5ecx+sUc02y7UGTgrQMxNONOSc2vJVnKDLuB3ILp3+3hwkNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713224596; c=relaxed/simple; bh=X9nCD4qkBQfBS8dnQLJRtmMUHEovcEJatZMQOk0SGew=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=WZagyP0tCltT5Hu5/vlG2mU7YcGaYFqnJAhde6q8i5yXR6dyPe4icAiOizpIl+2JT+qW23kHHq/CExbXe+GLR3P9Ecxy99qcC5Gs5pA37uZb0AfPcEOUDmSPyO1c4YJivYjENhXoWRO9tpb4Ij+q9cYZdt3gp7gWROMMc4dzuww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Cd2+qi1s; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4386CC32781; Mon, 15 Apr 2024 23:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713224596; bh=X9nCD4qkBQfBS8dnQLJRtmMUHEovcEJatZMQOk0SGew=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=Cd2+qi1sdibVeoUlXsaxLhCQyPBmi8pKhJTauFRkTwlSLupXQeLatImiezIBSeoYT BFKeqIl55DJcit5pEpIi6WZgVviA5ayYgwHUlcRaV64kyi6MAN3utg8r3dKHoNdgqa NSmnd2Hyt10sfgl2KR1DutTaF8cb0Ihp2FqcIjHrlCMLR2bdB8oVmNKeIcmyDdQMfc L0JEhYsitvzJe4lxVxZXiFwRHqnP30vC/DGCXkKoDEvh7iRr9p/bqZjeifQn57X20u gP+FJ4HVsIF3RrD32yYZrVQvM/p5gJyca0PXpbn0t2MgwwS1nYFJ6t780AmTxif0Ix zarBZuunsxE3A== From: Mark Brown To: Richard Fitzgerald , Dan Carpenter Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH] regmap: kunit: Fix an NULL vs IS_ERR() check Message-Id: <171322459456.1659174.4759607099482706461.b4-ty@kernel.org> Date: Tue, 16 Apr 2024 08:43:14 +0900 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14-dev On Mon, 15 Apr 2024 13:34:54 +0300, Dan Carpenter wrote: > The kunit_device_register() function returns error pointers, not NULL. > Passing an error pointer to get_device() will lead to an Oops. Also > get_device() returns the same device you passed to it. Fix it! ;) > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: kunit: Fix an NULL vs IS_ERR() check commit: 991b5e2aad870828669ca105f424ef1b2534f820 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