From: Eric Sandeen Date: Wed, 1 Oct 2014 23:23:49 +0000 (+1000) Subject: xfs: don't send null bp to xfs_trans_brelse() X-Git-Tag: fixes-against-v3.18-rc2~104^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee49a20c13b4b4e79a3bba406df8106cff284a1;p=pandora-kernel.git xfs: don't send null bp to xfs_trans_brelse() In this case, if bp is NULL, error is set, and we send a NULL bp to xfs_trans_brelse, which will try to dereference it. Test whether we actually have a buffer before we try to free it. Coverity spotted this. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- Reading git-diff-tree failed