Skip to content

Commit

Permalink
[libata] ata_piix: add missing kfree()
Browse files Browse the repository at this point in the history
Noticed by Andrew Morton.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Jeff Garzik committed Aug 14, 2006
1 parent 370ba07 commit 24dd01b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/ata/ata_piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,11 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)

static void piix_host_stop(struct ata_host_set *host_set)
{
struct piix_host_priv *hpriv = host_set->private_data;

ata_host_stop(host_set);

kfree(hpriv);
}

static int __init piix_init(void)
Expand Down

0 comments on commit 24dd01b

Please sign in to comment.