aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_qm.h
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2016-02-08 11:22:58 +1100
committerDave Chinner <david@fromorbit.com>2016-02-08 11:22:58 +1100
commita484bcdd1321b86de29a2969399da1fa6e9c7648 (patch)
tree46d5bc1493c4456f6b0231f0779b03369cf779d4 /fs/xfs/xfs_qm.h
parentquota: add new quotactl Q_GETNEXTQUOTA (diff)
downloadlinux-dev-a484bcdd1321b86de29a2969399da1fa6e9c7648.tar.xz
linux-dev-a484bcdd1321b86de29a2969399da1fa6e9c7648.zip
xfs: don't overflow quota ID when initializing dqblk
Quota IDs are unsigned, and so we can pass in values up to 2^32-1. But if we try to initialize a block containing values over MAX_INT, curid will overflow and assert. curid holds a quota ID, so give it the proper xfs_dqid_t type (and remove the now-impossible ASSERT). Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_qm.h')
0 files changed, 0 insertions, 0 deletions