From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> This reverts commit 48dc44f3c1afa29390cb2fbc8badad1b1111cea4 which is commit 3061e170381af96d1e66799d34264e6414d428a7 upstream. It was backported incorrectly, a fixed version will be applied later. Cc: Cosmin Tanislav <demonsingur@xxxxxxxxx> Cc: Mark Brown <broonie@xxxxxxxxxx> Link: https://lore.kernel.org/r/20250115033244.2540522-1-tzungbi@xxxxxxxxxx Reported-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/base/regmap/regmap.c | 12 ------------ 1 file changed, 12 deletions(-) --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -652,17 +652,6 @@ int regmap_attach_dev(struct device *dev } EXPORT_SYMBOL_GPL(regmap_attach_dev); -static int dev_get_regmap_match(struct device *dev, void *res, void *data); - -static int regmap_detach_dev(struct device *dev, struct regmap *map) -{ - if (!dev) - return 0; - - return devres_release(dev, dev_get_regmap_release, - dev_get_regmap_match, (void *)map->name); -} - static enum regmap_endian regmap_get_reg_endian(const struct regmap_bus *bus, const struct regmap_config *config) { @@ -1513,7 +1502,6 @@ int regmap_reinit_cache(struct regmap *m { int ret; - regmap_detach_dev(map->dev, map); regcache_exit(map); regmap_debugfs_exit(map); Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are queue-6.1/vsock-virtio-cancel-close-work-in-the-destructor.patch queue-6.1/drm-amdgpu-fix-usage-slab-after-free.patch queue-6.1/scsi-sg-fix-slab-use-after-free-read-in-sg_release.patch queue-6.1/revert-regmap-detach-regmap-from-dev-on-regmap_exit.patch queue-6.1/zram-fix-potential-uaf-of-zram-table.patch queue-6.1/pmdomain-imx8mp-blk-ctrl-add-missing-loop-break-condition.patch queue-6.1/revert-pci-use-preserve_config-in-place-of-pci_flags.patch queue-6.1/mptcp-be-sure-to-send-ack-when-mptcp-level-window-re-opens.patch queue-6.1/drm-amd-display-fix-out-of-bounds-access-in-dcn21_link_encoder_create.patch queue-6.1/irqchip-plug-a-of-node-reference-leak-in-platform_irqchip_probe.patch queue-6.1/vsock-prevent-null-ptr-deref-in-vsock_.patch queue-6.1/drm-i915-fb-relax-clear-color-alignment-to-64-bytes.patch queue-6.1/rdma-rxe-fix-the-qp-flush-warnings-in-req.patch queue-6.1/alsa-hda-realtek-add-support-for-ayaneo-system-using-cs35l41-hda.patch queue-6.1/net-ethernet-xgbe-re-add-aneg-to-supported-features-in-phy-quirks.patch queue-6.1/irqchip-gic-v3-its-don-t-enable-interrupts-in-its_irq_set_vcpu_affinity.patch queue-6.1/filemap-avoid-truncating-64-bit-offset-to-32-bits.patch queue-6.1/irqchip-gic-v3-handle-cpu_pm_enter_failed-correctly.patch queue-6.1/iio-imu-inv_icm42600-fix-spi-burst-write-not-supported.patch queue-6.1/iio-adc-rockchip_saradc-fix-information-leak-in-triggered-buffer.patch queue-6.1/block-fix-uaf-for-flush-rq-while-iterating-tags.patch queue-6.1/iio-imu-inv_icm42600-fix-timestamps-after-suspend-if-sensor-is-on.patch queue-6.1/hrtimers-handle-cpu-state-correctly-on-hotplug.patch queue-6.1/vsock-reset-socket-state-when-de-assigning-the-transport.patch queue-6.1/vsock-virtio-discard-packets-if-the-transport-changes.patch queue-6.1/revert-drm-amdgpu-rework-resume-handling-for-display-v2.patch queue-6.1/gpiolib-cdev-fix-use-after-free-in-lineinfo_changed_notify.patch queue-6.1/fs-proc-fix-softlockup-in-__read_vmcore-part-2.patch queue-6.1/selftests-mptcp-avoid-spurious-errors-on-disconnect.patch