From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from baythorne.infradead.org (baythorne.infradead.org [81.187.2.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 3C4AE687A7 for ; Sun, 20 Nov 2005 11:08:08 +1100 (EST) From: David Woodhouse To: greg@kroah.com, airlied@linux.ie In-Reply-To: <1132442389.4084.5.camel@baythorne.infradead.org> References: <1132442389.4084.5.camel@baythorne.infradead.org> Content-Type: text/plain Date: Sun, 20 Nov 2005 00:08:03 +0000 Message-Id: <1132445283.4084.9.camel@baythorne.infradead.org> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org Subject: Re: [PATCH] Fix oops in MGA DRM on root bus. List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2005-11-19 at 23:19 +0000, David Woodhouse wrote: > - if ((pdev->device == 0x0525) > + if ((pdev->device == 0x0525) && pdev->bus->self && > && (pdev->bus->self->vendor == 0x3388) > && (pdev->bus->self->device == 0x0021)) { > return 0; Perhaps with one fewer '&&'... diff --git a/drivers/char/drm/mga_drv.c b/drivers/char/drm/mga_drv.c --- a/drivers/char/drm/mga_drv.c +++ b/drivers/char/drm/mga_drv.c @@ -161,7 +161,7 @@ static int mga_driver_device_is_agp(drm_ * device. */ - if ((pdev->device == 0x0525) + if ((pdev->device == 0x0525) && pdev->bus->self && (pdev->bus->self->vendor == 0x3388) && (pdev->bus->self->device == 0x0021)) { return 0; -- dwmw2