patch-2.4.0-test9 linux/fs/nfs/proc.c

Next file: linux/fs/nfs/unlink.c
Previous file: linux/fs/nfs/nfsroot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test8/linux/fs/nfs/proc.c linux/fs/nfs/proc.c
@@ -251,8 +251,10 @@
 static void
 nfs_proc_unlink_done(struct dentry *dir, struct rpc_message *msg)
 {
-	NFS_CACHEINV(dir->d_inode);
-	kfree(msg->rpc_argp);
+	if (msg->rpc_argp) {
+		NFS_CACHEINV(dir->d_inode);
+		kfree(msg->rpc_argp);
+	}
 }
 
 static int

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)