]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: don't send null bp to xfs_trans_brelse()
authorEric Sandeen <sandeen@redhat.com>
Thu, 19 Jun 2014 02:15:06 +0000 (12:15 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 19 Jun 2014 02:15:06 +0000 (12:15 +1000)
commit35f2764a85e182de9eafe183c80660ed5f9d932b
treedd5d60ec79086a620f7245a6b7d1a0f558c82869
parente024ab59ba2a546a56f5bfb368e3620cdca49d72
libxfs: don't send null bp to xfs_trans_brelse()

In this case, if bp is null, error is set, and we send
bp to xfs_trans_brelse, which will try to dereference it.

Test whether we actualy have a buffer before we try to
free it.

Same fix as was sent for kernelspace.

Coverity spotted this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_da_btree.c