]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] NFS: fix client oops when debugging is on
authorNick Wilson <njw@osdl.org>
Fri, 23 Sep 2005 04:44:28 +0000 (21:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Sep 2005 05:17:37 +0000 (22:17 -0700)
commite582b70b9616d6b7cf7b9b9cfb272051d7bef643
tree5eace052aa3b694d9e1e8a523bf66641e0c51966
parent831b248a749951c3685c70132b0d72521812edb9
[PATCH] NFS: fix client oops when debugging is on

nfs_readpage_release() causes an oops while accessing a file with NFS
debugging turned on (echo 32767 > /proc/sys/sunrpc/nfs_debug) and a kernel
built with CONFIG_DEBUG_SLAB.

This patch moves the debugging statement above nfs_release_request() to
avoid accessing freed memory.

Signed-off-by: Nick Wilson <njw@osdl.org>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfs/read.c