From: Tejun Heo Date: Sat, 17 Feb 2007 17:24:37 +0000 (+0900) Subject: libata: fix probe_ent alloc/free bugs X-Git-Tag: v2.6.21-rc2~25^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d05447ec702364b8a2aebb4d625b16479268575;p=pandora-kernel.git 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 Cc: James Bottomley Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed