Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750790AbVKZXhJ (ORCPT ); Sat, 26 Nov 2005 18:37:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750791AbVKZXhI (ORCPT ); Sat, 26 Nov 2005 18:37:08 -0500 Received: from mailout.stusta.mhn.de ([141.84.69.5]:62738 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S1750790AbVKZXhG (ORCPT ); Sat, 26 Nov 2005 18:37:06 -0500 Date: Sun, 27 Nov 2005 00:37:05 +0100 From: Adrian Bunk To: Linus Torvalds , Andrew Morton Cc: markus.lidel@shadowconnect.com, linux-kernel@vger.kernel.org Subject: [2.6 patch] drivers/message/i2o/pci.c: fix a NULL pointer dereference Message-ID: <20051126233705.GD3988@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 795 Lines: 29 The Coverity checker spotted this obvious NULL pointer dereference. Signed-off-by: Adrian Bunk --- This patch was already sent on: - 23 Nov 2005 - 21 Nov 2005 --- linux-2.6.15-rc1-mm2-full/drivers/message/i2o/pci.c.old 2005-11-20 21:50:45.000000000 +0100 +++ linux-2.6.15-rc1-mm2-full/drivers/message/i2o/pci.c 2005-11-20 21:51:08.000000000 +0100 @@ -421,8 +421,8 @@ i2o_pci_free(c); free_controller: - i2o_iop_free(c); put_device(c->device.parent); + i2o_iop_free(c); disable: pci_disable_device(pdev); - 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/