mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
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:
|
History
|
|
|---|---|---|
| .. | ||
| masters | ||
| slaves | ||
| Kconfig | ||
| Makefile | ||
| w1.c | ||
| w1_family.c | ||
| w1_int.c | ||
| w1_internal.h | ||
| w1_io.c | ||
| w1_netlink.c | ||
| w1_netlink.h | ||