Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759146AbWLIWyp (ORCPT ); Sat, 9 Dec 2006 17:54:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759148AbWLIWyp (ORCPT ); Sat, 9 Dec 2006 17:54:45 -0500 Received: from nz-out-0506.google.com ([64.233.162.228]:39024 "EHLO nz-out-0102.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759146AbWLIWyo (ORCPT ); Sat, 9 Dec 2006 17:54:44 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=J8EZ2730BAQuaER+M8/d4AAwogY3rrKiwdk+LrdcW7b0fTjKbuYz58c/0aTC/fiGXP6QFT12xVfKBheZV5Q0Y/xFu8gPUNCwnVubsDGWnQYk9cjEicdCDJ02uLgXpr5KcP+TPjr0JwWMm+RScpjXUDqeMwxbIpc5zsfGzWHsuvw= Message-ID: Date: Sat, 9 Dec 2006 22:54:43 +0000 From: "Catalin Marinas" To: "Linux Kernel Mailing List" Subject: Possible memory leak in ata_piix.c MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 34 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): [] __kmalloc_track_caller [] __kzalloc [] piix_init_one [] pci_call_probe [] __pci_device_probe [] pci_device_probe [] really_probe [] driver_probe_device [] __driver_attach [] bus_for_each_dev [] driver_attach [] bus_add_driver [] driver_register [] __pci_register_driver [] piix_init Thanks. -- Catalin - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/