]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/9p/error.c
SUNRPC: RPC client should retry with different versions of rpcbind
[linux-2.6-omap-h63xx.git] / fs / 9p / error.c
index ae91555c155894be0b0118bc075e095ae01b5262..0d7fa4e08812b85367e290ebf933ea50306ac2a6 100644 (file)
@@ -83,6 +83,7 @@ int v9fs_errstr2errno(char *errstr, int len)
 
        if (errno == 0) {
                /* TODO: if error isn't found, add it dynamically */
+               errstr[len] = 0;
                printk(KERN_ERR "%s: errstr :%s: not found\n", __FUNCTION__,
                       errstr);
                errno = 1;