Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261604AbVCEPbX (ORCPT ); Sat, 5 Mar 2005 10:31:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261626AbVCEPbX (ORCPT ); Sat, 5 Mar 2005 10:31:23 -0500 Received: from coderock.org ([193.77.147.115]:31395 "EHLO trashy.coderock.org") by vger.kernel.org with ESMTP id S261604AbVCEPbT (ORCPT ); Sat, 5 Mar 2005 10:31:19 -0500 Subject: [patch 1/3] backend.c - vfree() checking cleanups To: davej@codemonkey.org.uk Cc: linux-kernel@vger.kernel.org, domen@coderock.org, jlamanna@gmail.com From: domen@coderock.org Date: Sat, 05 Mar 2005 16:31:05 +0100 Message-Id: <20050305153106.18F411EE1E@trashy.coderock.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1163 Lines: 35 backend.c vfree() checking cleanups. Signed-off by: James Lamanna Signed-off-by: Domen Puncer --- kj-domen/drivers/char/agp/backend.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff -puN drivers/char/agp/backend.c~vfree-drivers_char_agp_backend drivers/char/agp/backend.c --- kj/drivers/char/agp/backend.c~vfree-drivers_char_agp_backend 2005-03-05 16:10:29.000000000 +0100 +++ kj-domen/drivers/char/agp/backend.c 2005-03-05 16:10:29.000000000 +0100 @@ -203,10 +203,9 @@ static void agp_backend_cleanup(struct a bridge->driver->cleanup(); if (bridge->driver->free_gatt_table) bridge->driver->free_gatt_table(); - if (bridge->key_list) { - vfree(bridge->key_list); - bridge->key_list = NULL; - } + + vfree(bridge->key_list); + bridge->key_list = NULL; if (bridge->driver->agp_destroy_page && bridge->driver->needs_scratch_page) _ - 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/