lkml.org 
[lkml]   [2004]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: OOPS from ext3_follow_link in 2.6.7+BK
    On Fri, Jun 25, 2004 at 01:57:27AM +0300, Meelis Roos wrote:
    > Call Trace:
    > [<c01594ff>] generic_readlink+0x2f/0x80

    --- fs/namei.c Thu Jun 24 16:06:45 2004
    +++ fs/namei.c-fix Thu Jun 24 16:07:24 2004
    @@ -2197,7 +2197,9 @@
    int generic_readlink(struct dentry *dentry, char __user *buffer, int buflen)
    {
    struct nameidata nd;
    - int res = dentry->d_inode->i_op->follow_link(dentry, &nd);
    + int res;
    + nd.depth = 0;
    + res = dentry->d_inode->i_op->follow_link(dentry, &nd);
    if (!res) {
    res = vfs_readlink(dentry, buffer, buflen, nd_get_link(&nd));
    if (dentry->d_inode->i_op->put_link)
    -
    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 14:04    [W:7.468 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site