From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932160AbWFXEdO (ORCPT ); Sat, 24 Jun 2006 00:33:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932177AbWFXEdO (ORCPT ); Sat, 24 Jun 2006 00:33:14 -0400 Received: from mx1.redhat.com ([66.187.233.31]:31634 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S932160AbWFXEdN (ORCPT ); Sat, 24 Jun 2006 00:33:13 -0400 Date: Sat, 24 Jun 2006 00:33:08 -0400 From: Dave Jones To: Linux Kernel Cc: Linus Torvalds , Andrew Morton Subject: fix typo in acpi video brightness changes. Message-ID: <20060624043308.GA21753@redhat.com> Mail-Followup-To: Dave Jones , Linux Kernel , Linus Torvalds , Andrew Morton Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Prevent possible null dereference due to misplaced ; Signed-off-by: Dave Jones --- linux-2.6/drivers/acpi/video.c~ 2006-06-24 00:30:39.000000000 -0400 +++ linux-2.6/drivers/acpi/video.c 2006-06-24 00:31:04.000000000 -0400 @@ -1645,7 +1645,7 @@ static int acpi_video_bus_put_devices(st printk(KERN_WARNING PREFIX "hhuuhhuu bug in acpi video driver.\n"); - if (data->brightness); + if (data->brightness) kfree(data->brightness->levels); kfree(data->brightness); kfree(data); -- http://www.codemonkey.org.uk