diff options
author | Tejun Heo <htejun@gmail.com> | 2007-02-17 18:24:37 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-21 10:58:17 +0100 |
commit | 4d05447ec702364b8a2aebb4d625b16479268575 (patch) | |
tree | 1a3ed3c67f9c9ea5229aa3a368809101e9711bc7 /drivers/ata/Kconfig | |
parent | SATA: use NULL for ptrs (diff) | |
download | linux-4d05447ec702364b8a2aebb4d625b16479268575.tar.xz linux-4d05447ec702364b8a2aebb4d625b16479268575.zip |
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>
Diffstat (limited to 'drivers/ata/Kconfig')
0 files changed, 0 insertions, 0 deletions