fs/9p: re-init the wstat in readdir loop
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 6 Mar 2010 04:44:16 +0000 (04:44 +0000)
committerEric Van Hensbergen <ericvh@gmail.com>
Sat, 13 Mar 2010 14:57:29 +0000 (08:57 -0600)
commitfae4528b2341f2ab0c86c191e24d9cdd93624c60
treec60df63625d95dfa7c35fc60a671a1aff0c3e938
parent86c8437383acd85c05ec7c9a004f59fe7ac9821a
fs/9p: re-init the wstat in readdir loop

This ensure that on failure when we free the stat buf we don't end up
freeing an already freed pointer in the earlier loop

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Sripathi Kodi <sripathik@in.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_dir.c