From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755241AbYLIV3p (ORCPT ); Tue, 9 Dec 2008 16:29:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753064AbYLIV3g (ORCPT ); Tue, 9 Dec 2008 16:29:36 -0500 Received: from srv5.dvmed.net ([207.36.208.214]:44650 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752837AbYLIV3f (ORCPT ); Tue, 9 Dec 2008 16:29:35 -0500 Message-ID: <493EE339.1070806@garzik.org> Date: Tue, 09 Dec 2008 16:29:29 -0500 From: Jeff Garzik User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: Jiri Slaby CC: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Jeff Garzik , Alexandru Romanescu , Tejun Heo , Alan Cox Subject: Re: [PATCH 2/2 v2] ATA: piix, fix pointer deref on suspend References: <493E0689.6020302@garzik.org> <1228855948-22886-1-git-send-email-jirislaby@gmail.com> <1228855948-22886-2-git-send-email-jirislaby@gmail.com> In-Reply-To: <1228855948-22886-2-git-send-email-jirislaby@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-Spam-Report: SpamAssassin version 3.2.5 on srv5.dvmed.net summary: Content analysis details: (-4.4 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jiri Slaby wrote: > Commit > ata_piix: add borked Tecra M4 to broken suspend list > introduced DMI variables checking, but they can be null, so that > we possibly dereference null. > > Check if they are null and avoid checks in that case. > > Solves: > BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 > IP: [] piix_pci_device_suspend+0x117/0x230 > > Signed-off-by: Jiri Slaby > Cc: Jeff Garzik > Cc: Alexandru Romanescu > Cc: Tejun Heo > Cc: Alan Cox > --- > drivers/ata/ata_piix.c | 14 +++++++------- > 1 files changed, 7 insertions(+), 7 deletions(-) Note that the original version of this patch went upstream last night...