From: "Catalin Marinas" <catalin.marinas@gmail.com>
To: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Possible memory leak in ata_piix.c
Date: Sat, 9 Dec 2006 22:54:43 +0000 [thread overview]
Message-ID: <b0943d9e0612091454j6df1fb0ej2fa006c3fa33abae@mail.gmail.com> (raw)
Hi,
Kmemleak found a possible memory leak in piix_init_one() in
drivers/ata/ata_piix.c. This only appeared after 2.6.19, maybe caused
by the recent patches to this area. Kmemleak cannot find any track of
the kzalloc'ed piix_host_priv structure allocated in the above
function and reports it. The allocation stack trace is below:
unreferenced object 0xde9bca60 (size 4):
[<c018d85d>] __kmalloc_track_caller
[<c0179249>] __kzalloc
[<c02cf33f>] piix_init_one
[<c023dc2d>] pci_call_probe
[<c023dc81>] __pci_device_probe
[<c023dcb9>] pci_device_probe
[<c029b5fc>] really_probe
[<c029b728>] driver_probe_device
[<c029b8c1>] __driver_attach
[<c029a879>] bus_for_each_dev
[<c029b8e9>] driver_attach
[<c029ae9c>] bus_add_driver
[<c029bd27>] driver_register
[<c023e035>] __pci_register_driver
[<c02cf4ef>] piix_init
Thanks.
--
Catalin
next reply other threads:[~2006-12-09 22:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-09 22:54 Catalin Marinas [this message]
2006-12-11 13:26 ` [PATCH] ata_piix: use piix_host_stop() in ich_pata_ops Tejun Heo
2006-12-11 14:19 ` Alan
2006-12-13 10:41 ` Catalin Marinas
2006-12-14 23:42 ` Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b0943d9e0612091454j6df1fb0ej2fa006c3fa33abae@mail.gmail.com \
--to=catalin.marinas@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox