lkml.org 
[lkml]   [2003]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 5/5] OProfile update
From
Date

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.023 / U:1.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site