From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 5837F3E7BA3 for ; Thu, 4 Jun 2026 08:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780563027; cv=none; b=CpPfoMAJEayzz/78L8Zf+6WXYudCyZOOOdPvhHi9ycKHBaapDioE7GNItSfNCALFer59zv/Um8qWty+prxrPlKbFGFjlIMh/0hY1zpbSvSwS91nfkQg/63g//m951LayZlDPChAPCLVg0GhxkBPCqqUFbWyRAOWyrxQ1qo6v1Io= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780563027; c=relaxed/simple; bh=KqjJAe3ETWh1gIe4NGpbA+GtXNqDE7rgeB0eA1XbZp0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dItDtaEqCfBxNpqvh7Z4jR9bWIU7/2PbQZC4KFLCt4Wgk4cnS1i4sPFeHYEf+RDw2sPslTgvv6zEoH7TCnjJ7wAtbqsjNow4tDkol9tbcaYXZgcoS8OPSPeXu4jlT1yJu0w7jkyaatZMgdGYxi4QN4FKxn1KZH/PaNaDweCeuR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=bmVe0QZH; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="bmVe0QZH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=O3f4 byr7kkBmRb2f4hBg3QG0cNL48Wc/X98/FKQyD4c=; b=bmVe0QZHKNzubsEYxM/F +/dObd2ZOFOsjLevfmU0V2CuTHagOxLvFKMs5rDcfBoTvPdEOjmqb8SFLGbWMH5s gP/02/AogtllDbbXnHkS8/5bXDuKKdSUqpzzRFtPJ3sw5k+PHAwerbQc9a+DtgJr cdozeLN54I1rvatjAT7JJEETq7SpDll4rxzqEakTy+q13WcVEitTlOFxc25jHm+D xetGutL2IrIMTiMElg2lS+3VMskcPqVsWG7cI2OLf/g0z22WRbDfCNyFVliSfJ32 FGUEIxgJ5/Fcovafljq1u09NfSFyMOZHft8C+psXiMCHvHsVZHJnp1V4w861wWzM Gw== Received: (qmail 3573633 invoked from network); 4 Jun 2026 10:50:23 +0200 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 4 Jun 2026 10:50:23 +0200 X-UD-Smtp-Session: l3s3148p1@yemBomlT4MQujnsi Date: Thu, 4 Jun 2026 10:50:23 +0200 From: Wolfram Sang To: Johan Hovold Cc: Andi Shyti , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jean Delvare Subject: Re: [PATCH v3 08/10] i2c: core: fix adapter deregistration race Message-ID: References: <20260511143715.729714-1-johan@kernel.org> <20260511143715.729714-9-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SnHQPAVJrYRK8KrC" Content-Disposition: inline In-Reply-To: <20260511143715.729714-9-johan@kernel.org> --SnHQPAVJrYRK8KrC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 11, 2026 at 04:37:13PM +0200, Johan Hovold wrote: > Adapters can be looked up by their id using i2c_get_adapter() which > takes a reference to the embedded struct device. >=20 > Remove the adapter from the IDR before tearing it down during > deregistration (and on registration failure) to make sure its resources > are not accessed after having been freed (e.g. the device name). >=20 > Fixes: 35fc37f81881 ("i2c: Limit core locking to the necessary sections") > Cc: stable@vger.kernel.org # 2.6.31 > Cc: Jean Delvare > Signed-off-by: Johan Hovold Reviewed-by: Wolfram Sang --SnHQPAVJrYRK8KrC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmohPE8ACgkQFA3kzBSg KbZU5A/7BjNYY1tUuUaZSb2urmYlttbu+GVKWGBjHLchv4OOc3hgwirQQWsj9Iuy V6t8mjcDigZwX/89VyyeDir89UgtDjxPQ/tfO7ESLrx9u7v4pQVappo3BZH8iR8U WsmK2lVNKE5BDp839NW5joiBXTN1mlr4CQzN0dP9JaxrwmYRIIqBJPedvQsUce+4 J842bdg2P6Ecdf8+hsiSUqwzmnQlHklpO+dVdNMVUryCYVcRzdxI009k0BmeA8qA Bzy1NvI4R/tEg5WbGp4HJSS1kU/p8CEGykJN7cfZjK79GBOlokH5vIlGTj0Oce+G DpuZaLEu8AU+LN+MmCd3lEEeqnTO2diI+LhOl72FOwJZgiDhRlHypXHos46AdAPa as6pN4XrBiS8NLJUbAg6N0GDJtGDtIDa+nnsA5VfdL+2vcRcop24u20tWwtz24EC Ygaz336nX0hfnr2+fenSSyB2JENrt0isBASgblcvdze7Z0dqvHZ5l2lNur5PQ8BD 7fmrF0w2cQpYFyXX4k8nzbnZ6LxauaJgJnjkFgQgx/hvD+vo7tzSAUGvC1saxeky 5CtvM4xE+nXLTuO7gikkKuTv2oz1z6rbByFU19SQ18xesbvq+rhRgdy0eIyp0F9h BpFYpCrzIeBDBPevev/f0X16Ri36DknVqwuDTSOL6AzkFWQcxyo= =P7Cl -----END PGP SIGNATURE----- --SnHQPAVJrYRK8KrC--