From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by ozlabs.org (Postfix) with ESMTP id 4552B67A3E for ; Tue, 1 Aug 2006 09:50:53 +1000 (EST) Received: by py-out-1112.google.com with SMTP id f25so773741pyf for ; Mon, 31 Jul 2006 16:50:53 -0700 (PDT) Message-ID: <44CE974B.1090605@gmail.com> Date: Tue, 01 Aug 2006 07:50:35 +0800 From: "Antonino A. Daplas" MIME-Version: 1.0 To: Olaf Hering Subject: Re: [PATCH] crash in aty128_set_lcd_enable on PowerBook References: <20060716163728.GA16228@suse.de> <20060731185024.GA5117@suse.de> In-Reply-To: <20060731185024.GA5117@suse.de> Content-Type: text/plain; charset=UTF-8 Cc: Andrew Morton , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Olaf Hering wrote: > On Sun, Jul 16, Olaf Hering wrote: > >> Current Linus tree crashes in aty128_set_lcd_enable() because par->pdev >> is NULL. This happens since at least a week. Call trace is: >> >> aty128_set_lcd_enable >> aty128fb_set_par >> fbcon_init >> visual_init >> take_over_console >> fbcon_takeover >> notifier_call_chain >> blocking_notifier_call_chain >> register_framebuffer >> aty128fb_probe >> pci_device_probe >> bus_for_each_dev >> driver_attach >> bus_add_driver >> driver_register >> __pci_register_driver >> aty128fb_init >> init >> kernel_thread >> > > > - info->fix was assigned twice. > - par->vram_size is assigned in aty128_probe(), no need to redo it again in aty128_init() > - register_framebuffer() uses uninitialized struct members, > move it past par->pdev assignment and past aty128_bl_init(). > > Looks good. > Signed-off-by: Olaf Hering Acked-by: Antonino Daplas