mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
dev_get_by_name() will increment the usage count if the matching device is found. But we were not decrementing the count if we have got the device and the device is non-active. Signed-off-by: Sudip Mukherjee <[email protected]> Signed-off-by: David S. Miller <[email protected]>