Re: [PATCH v2] scsi-disk: define props in scsi_block_disk to avoid memleaks

2020-04-20 Thread Pan Nengyuan
Hi Paolo, On 2/19/2020 3:52 PM, Pan Nengyuan wrote: > > > On 1/22/2020 1:05 AM, Paolo Bonzini wrote: >> On 14/01/20 10:16, pannengy...@huawei.com wrote: >>> From: Pan Nengyuan >>> >>> scsi_block_realize() use scsi_realize() to init some props, but >>> these props is not defined in scsi_block_di

Re: [PATCH v2] scsi-disk: define props in scsi_block_disk to avoid memleaks

2020-02-18 Thread Pan Nengyuan
On 1/22/2020 1:05 AM, Paolo Bonzini wrote: > On 14/01/20 10:16, pannengy...@huawei.com wrote: >> From: Pan Nengyuan >> >> scsi_block_realize() use scsi_realize() to init some props, but >> these props is not defined in scsi_block_disk_properties, so they will >> not be freed. >> >> This patch d

Re: [PATCH v2] scsi-disk: define props in scsi_block_disk to avoid memleaks

2020-01-21 Thread Paolo Bonzini
On 14/01/20 10:16, pannengy...@huawei.com wrote: > From: Pan Nengyuan > > scsi_block_realize() use scsi_realize() to init some props, but > these props is not defined in scsi_block_disk_properties, so they will > not be freed. > > This patch defines these prop in scsi_block_disk_properties and a

[PATCH v2] scsi-disk: define props in scsi_block_disk to avoid memleaks

2020-01-14 Thread pannengyuan
From: Pan Nengyuan scsi_block_realize() use scsi_realize() to init some props, but these props is not defined in scsi_block_disk_properties, so they will not be freed. This patch defines these prop in scsi_block_disk_properties and aslo calls scsi_unrealize to avoid memleaks, the leak stack as f