From: Dave Chinner Date: Wed, 1 Oct 2014 23:05:32 +0000 (+1000) Subject: xfs: check xfs_buf_read_uncached returns correctly X-Git-Tag: fixes-against-v3.18-rc2~104^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba3726742c1712c43c5a18245476f3fe9fe74773;p=pandora-kernel.git xfs: check xfs_buf_read_uncached returns correctly xfs_buf_read_uncached() has two failure modes. If can either return NULL or bp->b_error != 0 depending on the type of failure, and not all callers check for both. Fix it so that xfs_buf_read_uncached() always returns the error status, and the buffer is returned as a function parameter. The buffer will only be returned on success. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- Reading git-diff-tree failed