Re: [2.6 patch] drivers/ieee1394/raw1394.c: fix a NULL pointerdereference
From: Stefan Richter
Date: Mon Nov 21 2005 - 17:10:13 EST
[PATCH 2.6.15-rc2] raw1394: fix memory deallocation in modify_config_rom
raw1394: use correct deallocation macro for CSR cache
Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
--- linux-2.6.15-rc2/drivers/ieee1394/raw1394.c.orig 2005-11-21 22:17:13.000000000 +0100
+++ linux-2.6.15-rc2/drivers/ieee1394/raw1394.c 2005-11-21 22:29:19.000000000 +0100
@@ -2172,7 +2171,7 @@ static int modify_config_rom(struct file
}
}
kfree(cache->filled_head);
- kfree(cache);
+ CSR1212_FREE(cache);
if (ret >= 0) {
/* we have to free the request, because we queue no response,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/