Re: [PATCH] libata: fix probe_ent free in ata_sas_port_alloc()

2007-02-17 Thread James Bottomley
On Sat, 2007-02-17 at 23:27 +0900, Tejun Heo wrote: > probe_ent is allocated using devm_kzalloc() and thus should be freed > using devm_kfree(). ata_sas_port_alloc() freed its probe_ent using > kfree() thus causing double free later. > > Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> > --- > James,

[PATCH] libata: fix probe_ent free in ata_sas_port_alloc()

2007-02-17 Thread Tejun Heo
probe_ent is allocated using devm_kzalloc() and thus should be freed using devm_kfree(). ata_sas_port_alloc() freed its probe_ent using kfree() thus causing double free later. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> --- James, does this fix the bug you mentioned on IRC? diff --git a/driver