The patch titled v9fs: Twalk memory leak has been added to the -mm tree. Its filename is v9fs-twalk-memory-leak.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this From: Latchesar Ionkov <lucho@xxxxxxxxxx> v9fs leaks memory if the file server responds with Rerror to a Twalk message. The patch fixes the leak. Signed-off-by: Latchesar Ionkov <lucho@xxxxxxxxxx> Cc: Eric Van Hensbergen <ericvh@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/9p/fcall.c | 21 +++++++++------------ 1 files changed, 9 insertions(+), 12 deletions(-) diff -puN fs/9p/fcall.c~v9fs-twalk-memory-leak fs/9p/fcall.c --- devel/fs/9p/fcall.c~v9fs-twalk-memory-leak 2006-05-10 21:50:07.000000000 -0700 +++ devel-akpm/fs/9p/fcall.c 2006-05-10 21:50:07.000000000 -0700 @@ -98,23 +98,20 @@ v9fs_t_attach(struct v9fs_session_info * static void v9fs_t_clunk_cb(void *a, struct v9fs_fcall *tc, struct v9fs_fcall *rc, int err) { - int fid; + int fid, id; struct v9fs_session_info *v9ses; - if (err) - return; - + id = 0; fid = tc->params.tclunk.fid; - kfree(tc); - - if (!rc) - return; - - v9ses = a; - if (rc->id == RCLUNK) - v9fs_put_idpool(fid, &v9ses->fidpool); + if (rc) + id = rc->id; + kfree(tc); kfree(rc); + if (id == RCLUNK) { + v9ses = a; + v9fs_put_idpool(fid, &v9ses->fidpool); + } } /** _ Patches currently in -mm which might be from lucho@xxxxxxxxxx are v9fs-twalk-memory-leak.patch v9fs-signal-handling-fixes.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html