git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce57bcf
)
xfs: don't send null bp to xfs_trans_brelse()
author
Eric Sandeen
<sandeen@sandeen.net>
Wed, 1 Oct 2014 23:23:49 +0000
(09:23 +1000)
committer
Dave Chinner
<david@fromorbit.com>
Wed, 1 Oct 2014 23:23:49 +0000
(09:23 +1000)
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 <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
No differences found