As comment of device_add() says, if device_add() succeeds, you should
call device_del() when you want to get rid of it. If device_add() has
not succeeded, use only put_device() to drop the reference count.
Add a put_device() call before returning from the function to decrement
reference count for cleanup.
Found by code review.
Fixes:
|
||
|---|---|---|
| .. | ||
| ipoib | ||
| iser | ||
| isert | ||
| opa_vnic | ||
| rtrs | ||
| srp | ||
| srpt | ||
| Makefile | ||