]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/9p/vfs_inode.c
9p: Remove potentially bad parameter from function entry debug print.
[linux-2.6-omap-h63xx.git] / fs / 9p / vfs_inode.c
index 8314d3f43b716f41560e4517d42eaade5cfc1459..7c7352838098ee6d8db730a2ce796c3de6679488 100644 (file)
@@ -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) ? "<error>" : s);
        if (!IS_ERR(s))
                __putname(s);
 }