diff options
author | Eric Sandeen <sandeen@redhat.com> | 2014-05-05 09:27:06 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-05 09:27:06 +0200 |
commit | f58522c5a47a1862c6b3fad97ea9285c5d68199d (patch) | |
tree | 38014a3199297f7b7ccece36eb8ad18d8072943c /fs/xfs/xfs_dquot.h | |
parent | xfs: fix Q_XQUOTARM ioctl (diff) | |
download | linux-f58522c5a47a1862c6b3fad97ea9285c5d68199d.tar.xz linux-f58522c5a47a1862c6b3fad97ea9285c5d68199d.zip |
xfs: bulletfproof xfs_qm_scall_trunc_qfiles()
Coverity noticed that if we sent junk into
xfs_qm_scall_trunc_qfiles(), we could get back an
uninitialized error value. So sanitize the flags we
will accept, and initialize error anyway for good measure.
(This bug may have been introduced via c61a9e39).
Should resolve Coverity CID 1163872.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.h')
0 files changed, 0 insertions, 0 deletions