xfs: check for null dquot in xfs_quota_calc_throttle()
authorEric Sandeen <sandeen@redhat.com>
Wed, 1 Oct 2014 23:27:09 +0000 (09:27 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 1 Oct 2014 23:27:09 +0000 (09:27 +1000)
Coverity spotted this.

Granted, we *just* checked xfs_inod_dquot() in the caller (by
calling xfs_quota_need_throttle). However, this is the only place we
don't check the return value but the check is cheap and future-proof
so add it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>

No differences found