From: Duane Griffin Date: Fri, 19 Dec 2008 22:45:21 +0000 (-0600) Subject: 9p: Remove potentially bad parameter from function entry debug print. X-Git-Tag: v2.6.28~16^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6ff232070a1088807e24f657b5d6f299f1ec32f6;p=linux-2.6-omap-h63xx.git 9p: Remove potentially bad parameter from function entry debug print. Signed-off-by: Duane Griffin Signed-off-by: Eric Van Hensbergen --- diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 8314d3f43b7..7c735283809 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -1022,7 +1022,8 @@ v9fs_vfs_put_link(struct dentry *dentry, struct nameidata *nd, void *p) { char *s = nd_get_link(nd); - P9_DPRINTK(P9_DEBUG_VFS, " %s %s\n", dentry->d_name.name, s); + P9_DPRINTK(P9_DEBUG_VFS, " %s %s\n", dentry->d_name.name, + IS_ERR(s) ? "" : s); if (!IS_ERR(s)) __putname(s); }