Re: WARNING in __init_work

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

 



On Mon, Oct 18, 2021 at 03:21:18PM +0800, Zqiang wrote:
> I find in add_partition(),  if the device_add() return error, we will drop 
> disk object reference count,
>
> but i find put_device(pdev) (will call part_release())and put_disk(disk), 
> both will reduce the reference of the disk object , however we call 
> get_device(disk_to_dev(disk)) only once
>
> or Did I miss something and didn't analyze it?

Yes, this sounds correct.  Do you want to send a patch or should I
prepare one?





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux