Whamcloud - gitweb
debugfs: fix segfault on "stat" command with no open fs
authorEric Sandeen <sandeen@redhat.com>
Thu, 29 Jan 2009 22:46:28 +0000 (17:46 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 8 Mar 2009 23:29:28 +0000 (19:29 -0400)
commiteefa4d950cf4da9a835812fe44fb7973ec147cbf
treebb1835b6a05f2323820a76eea5324c2759c31cee
parent9af62fde650003b9f0b67b77b020cfc770f9aa4c
debugfs: fix segfault on "stat" command with no open fs

This is a regression from commit
8fdf29117f922419bd5b3f741e5d554b1d5b8893, which attempts to access
current_fs via a feature check before we check that it's open.

Just moving the feature check below the open check should fix it.

Reported-by: Andrew Hecox <ahecox@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c