Re: [GIT PULL 1/3] intel_th: Fix a double put_device() in error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wen Yang <wenyang@xxxxxxxxxxxxxxxxx> writes:

> device_add() has increased the reference count,
>
> so when it returns an error, an additional call to put_device()
>
> is needed here to reduce the reference count.

No, in case of error it also drops its reference.

Regards,
--
Alex



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux