2005-01-10 18:52:42

by Domen Puncer

[permalink] [raw]
Subject: [patch 2/2] generic.c - vfree() checking cleanups



generic.c vfree() checking cleanups.

Signed-off by: James Lamanna <[email protected]>


Signed-off-by: Domen Puncer <[email protected]>
---


kj-domen/drivers/char/agp/generic.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/char/agp/generic.c~vfree-drivers_char_agp_generic drivers/char/agp/generic.c
--- kj/drivers/char/agp/generic.c~vfree-drivers_char_agp_generic 2005-01-10 18:00:58.000000000 +0100
+++ kj-domen/drivers/char/agp/generic.c 2005-01-10 18:00:58.000000000 +0100
@@ -920,8 +920,7 @@ EXPORT_SYMBOL(agp_generic_alloc_by_type)

void agp_generic_free_by_type(struct agp_memory *curr)
{
- if (curr->memory != NULL)
- vfree(curr->memory);
+ vfree(curr->memory);

agp_free_key(curr->key);
kfree(curr);
_