mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01: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:
|
||
|---|---|---|
| .. | ||
| masters | ||
| slaves | ||
| Kconfig | ||
| Makefile | ||
| w1.c | ||
| w1_family.c | ||
| w1_int.c | ||
| w1_internal.h | ||
| w1_io.c | ||
| w1_netlink.c | ||
| w1_netlink.h | ||