lkml.org 
[lkml]   [1997]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: Linux-2.1.45 - the Weasel is back.. [patch]
    There's still a f_inode lurking in drivers/char/sysrq.c ...


    --- linux/drivers/char/sysrq.c.~1~ Tue Jul 15 22:39:59 1997
    +++ linux/drivers/char/sysrq.c Tue Jul 15 23:09:07 1997
    @@ -154,7 +154,7 @@
    struct file *file;

    for (file = inuse_filps; file; file = file->f_next)
    - if (file->f_inode && file->f_count && S_ISREG(file->f_inode->i_mode))
    + if (file->f_dentry->d_inode && file->f_count && S_ISREG(file->f_dentry->d_inode->i_mode))
    file->f_mode &= ~2;
    }

    Cheers,
    Sander
    --
    Sander van Malssen -- svm@kozmix.ow.nl -- http://www.cistron.nl/~svm/
    * The 1-2-5 Page: http://www.cistron.nl/~svm/music/ *

    \
     
     \ /
      Last update: 2005-03-22 13:39    [W:0.017 / U:2.376 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site