On Thu, 18 Dec 2025 19:14:14 +0800, Haoxiang Li wrote:
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().
[...]
Applied, thanks!
[1/1] w1: fix redundant counter decrement in w1_attach_slave_device() https://git.kernel.org/krzk/linux-w1/c/cc8f92e41eb76f450f05234fef2054afc3633...
Best regards,