--- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -976,6 +976,9 @@ static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) GFS2_LOG_HEAD_FLUSH_NORMAL | GFS2_LFC_DO_SYNC); out: gfs2_qa_put(ip); + for (x = 0; x < num_qd; x++) + BUG_ON(!qda[x]); + return error; }