On Sun, 2007-02-18 at 02:24 +0900, Tejun Heo wrote: > ata_probe_ent_alloc() had a temporary hack such that devm_kzalloc() > was used for allocation if devres had been previously initialized on > the device; otherwise, plain kzalloc() was used. This was to make the > code useable from both the old and devres-aware libata drivers during > transition. This hack made ata_sas_port_alloc() unable to determine > how the probe_ent is allocated, causing double free in some cases. > > Remove the now-unneeded hack and make ata_sas_port_alloc() use > devm_kfree(). > > Signed-off-by: Tejun Heo <htejun@xxxxxxxxx> > Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxx> > --- > James, thanks for the diagnosis and please ack if this fixes the > problem. Yes, it fixes all the problems. James - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html