Re: 2.3.99-pre9: oops from nfsd

From: Mikael Pettersson (mikpe@csd.uu.se)
Date: Wed May 24 2000 - 18:55:02 EST


David Miller posted a fix for the nfsd oops on unload problem
(kfree --> free_pages). Looking at the code, I suspect a similar
fix is needed in nfsd_cache_init(). Patch follows below.

/Mikael

--- linux-2.3.99-pre9/fs/nfsd/nfscache.c.orig Wed May 24 20:49:52 2000
+++ linux-2.3.99-pre9/fs/nfsd/nfscache.c Thu May 25 01:17:08 2000
@@ -68,7 +68,7 @@
         i = HASHSIZE * sizeof (struct nfscache_head);
         hash_list = kmalloc (i, GFP_KERNEL);
         if (!hash_list) {
- kfree (nfscache);
+ free_pages ((unsigned long)nfscache, order);
                 nfscache = NULL;
                 printk (KERN_ERR "nfsd: cannot allocate %d bytes for hash list\n", i);
                 return;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:12 EST