X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=fs%2Fquota%2Fquota_v1.c;h=12d69cda57cca9f25a998e88b9be38e534aa0e11;hp=8fe79beced5cc05c77ad0d536fe017beeb4a2f9e;hb=47cdc11deed639ae1d4050efbc284d328c3c2fa5;hpb=7dac5cb1bc8c4bc420f0cafd9c42d693eadfdd7e diff --git a/fs/quota/quota_v1.c b/fs/quota/quota_v1.c index 8fe79beced5c..12d69cda57cc 100644 --- a/fs/quota/quota_v1.c +++ b/fs/quota/quota_v1.c @@ -56,8 +56,9 @@ static int v1_read_dqblk(struct dquot *dquot) { int type = dquot->dq_id.type; struct v1_disk_dqblk dqblk; + struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); - if (!sb_dqopt(dquot->dq_sb)->files[type]) + if (!dqopt->files[type]) return -EINVAL; /* Set structure to 0s in case read fails/is after end of file */