]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ata_piix: use piix_host_stop() in ich_pata_ops
authorTejun Heo <htejun@gmail.com>
Mon, 11 Dec 2006 13:26:25 +0000 (22:26 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 16 Dec 2006 15:12:29 +0000 (10:12 -0500)
commit7c0d68ddeac11e2260d587885b03e3df6c9ea975
tree1bba7fc5845ddb4add50a85bd7df5a5f172957b0
parentf59ec48c498a4ecba6d0227100b89d0fb508d52e
[PATCH] ata_piix: use piix_host_stop() in ich_pata_ops

piix_init_one() allocates host private data which should be freed by
piix_host_stop().  ich_pata_ops wasn't converted to piix_host_stop()
while merging, leaking 4 bytes on driver detach.  Fix it.

This was spotted using Kmemleak by Catalin Marinas.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Catalin Marinas <catalin.marinas@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/ata_piix.c