diff options
author | Julia Lawall <julia@diku.dk> | 2009-08-07 21:51:33 +0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-08-07 21:51:33 +0400 |
commit | 60f2e8f8a07331097a57ec4abcdc680405579377 (patch) | |
tree | 6ed3c6c8fc2ad4c824c7d2c942fe7d3ece924dc7 /fs/ocfs2 | |
parent | 4baf8c9201e88546918cbfa61ea8062c38bc1644 (diff) | |
download | linux-60f2e8f8a07331097a57ec4abcdc680405579377.tar.xz |
Btrfs: correct error-handling zlib error handling
find_zlib_workspace returns an ERR_PTR value in an error case instead of NULL.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@match exists@
expression x, E;
statement S1, S2;
@@
x = find_zlib_workspace(...)
... when != x = E
(
* if (x == NULL || ...) S1 else S2
|
* if (x == NULL && ...) S1 else S2
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/ocfs2')
0 files changed, 0 insertions, 0 deletions