linux/drivers/w1
Haoxiang Li cc8f92e41e w1: fix redundant counter decrement in w1_attach_slave_device()
In w1_attach_slave_device(), if __w1_attach_slave_device() fails,
put_device() -> w1_slave_release() is called to do the cleanup job.
In w1_slave_release(), sl->family->refcnt and sl->master->slave_count
have already been decremented. There is no need to decrement twice
in w1_attach_slave_device().

Fixes: 2c927c0c73 ("w1: Fix slave count on 1-Wire bus (resend)")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Link: https://patch.msgid.link/20251218111414.564403-1-lihaoxiang@isrc.iscas.ac.cn
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2025-12-28 11:52:10 +01:00
..
masters w1: omap-hdq: Remove redundant pm_runtime_mark_last_busy() calls 2025-11-11 10:55:18 +01:00
slaves w1: therm: Fix off-by-one buffer overflow in alarms_store 2025-12-18 17:01:42 +01:00
Kconfig
Makefile
w1.c w1: fix redundant counter decrement in w1_attach_slave_device() 2025-12-28 11:52:10 +01:00
w1_family.c
w1_int.c w1: Drop allocation error message 2024-05-28 17:45:02 +02:00
w1_internal.h
w1_io.c
w1_netlink.c w1: Avoid -Wflex-array-member-not-at-end warnings 2025-05-21 14:14:35 +02:00
w1_netlink.h