ext4: fix oops in ext4_quota_off()
authorAmir Goldstein <amir73il@gmail.com>
Mon, 16 May 2011 13:59:13 +0000 (09:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 May 2011 13:59:13 +0000 (09:59 -0400)
commit0b26859027ce0005ef89520af20351360e51ad76
treed0d8cec8c1f413c0980b4a66614871bd435ab334
parent6976a6f2acde2b0443cd64f1d08af90630e4ce81
ext4: fix oops in ext4_quota_off()

If quota is not enabled when ext4_quota_off() is called, we must not
dereference quota file inode since it is NULL.  Check properly for
this.

This fixes a bug in commit 21f976975cbe (ext4: remove unnecessary
[cm]time update of quota file), which was merged for 2.6.39-rc3.

Reported-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c