[PATCH 5/5] OProfile update

From: John Levon (levon@movementarian.org)
Date: Sun May 25 2003 - 23:33:45 EST



d_path() can return -ENAMETOOLONG these days. Pass it upstream.

diff -Naur -X dontdiff linux-cvs/fs/dcookies.c linux-me/fs/dcookies.c
--- linux-cvs/fs/dcookies.c 2003-05-19 19:57:28.000000000 +0100
+++ linux-me/fs/dcookies.c 2003-05-19 20:05:16.000000000 +0100
@@ -175,6 +175,11 @@
/* FIXME: (deleted) ? */
path = d_path(dcs->dentry, dcs->vfsmnt, kbuf, PAGE_SIZE);

+ if (IS_ERR(path)) {
+ err = PTR_ERR(path);
+ goto out_free;
+ }
+
err = -ERANGE;

pathlen = kbuf + PAGE_SIZE - path;
@@ -184,6 +189,7 @@
err = -EFAULT;
}

+out_free:
kfree(kbuf);
out:
up(&dcookie_sem);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/