lkml.org 
[lkml]   [2011]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[64/85] fat: Fix corrupt inode flags when remove ATTR_SYS flag
    2.6.33-longterm review patch.  If anyone has any objections, please let us know.

    ------------------

    From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

    commit 1adffbae22332bb558c2a29de19d9aca391869f6 upstream.

    We are clearly missing '~' in fat_ioctl_set_attributes().

    Reported-by: Dmitry Dmitriev <dimondmm@yandex.ru>
    Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    fs/fat/file.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/fs/fat/file.c
    +++ b/fs/fat/file.c
    @@ -101,7 +101,7 @@ static int fat_ioctl_set_attributes(stru
    if (attr & ATTR_SYS)
    inode->i_flags |= S_IMMUTABLE;
    else
    - inode->i_flags &= S_IMMUTABLE;
    + inode->i_flags &= ~S_IMMUTABLE;
    }

    fat_save_attrs(inode, attr);



    \
     
     \ /
      Last update: 2011-06-16 09:15    [W:4.262 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site