Re: [PATCH v4 06/25] ibtrs: client: main functionality

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

 



On 9/25/19 3:53 PM, Danil Kipnis wrote:
Oh, you mean we just need stub functions for those, so that nobody
steps on a null?

What I meant is that the memory that is backing a device must not be freed until the reference count of a device has dropped to zero. If a struct device is embedded in a larger structure that means signaling a completion from inside the release function (ibtrs_clt_dev_release()) and not freeing the struct device memory (kfree(clt) in free_clt()) before that completion has been triggered.

Bart.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux