From: Eric Sandeen Date: Mon, 5 May 2014 07:27:06 +0000 (+1000) Subject: xfs: bulletfproof xfs_qm_scall_trunc_qfiles() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~55^2~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f58522c5a47a1862c6b3fad97ea9285c5d68199d;p=pandora-kernel.git 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 Reviewed-by: Christoph Hellwig Reviewed-by: Jie Liu Signed-off-by: Dave Chinner --- Reading git-diff-tree failed