Tejun Heo 4d05447ec7 libata: fix probe_ent alloc/free bugs
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@gmail.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-02-21 04:58:17 -05:00
..
2007-02-21 04:58:17 -05:00
2007-02-20 17:10:14 -08:00
2006-12-07 08:39:24 -08:00
2006-10-11 11:14:25 -07:00
2007-02-20 17:10:14 -08:00
2007-02-19 13:34:11 -08:00
2007-02-16 14:00:19 +11:00
2007-02-20 17:10:15 -08:00
2007-02-17 19:07:33 +01:00
2007-02-11 10:51:24 -08:00
2007-02-11 10:51:24 -08:00