diff options
author | Eric Sandeen <[email protected]> | 2014-10-02 09:23:49 +1000 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2014-10-02 09:23:49 +1000 |
commit | 6ee49a20c13b4b4e79a3bba406df8106cff284a1 (patch) | |
tree | 07fd39c605fbfd6bb17fe348730d664b11c18fd2 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | ce57bcf6b81caf1e9f780e98e8d23d3555746d74 (diff) |
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions