diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2013-11-09 19:02:29 -0500 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2013-11-19 22:59:20 -0500 |
commit | ed4f381ec15e5f11724cdbc68cffd2c22d1eaebd (patch) | |
tree | 164317dc8f4526510179bab62e3c53f0f89080b1 /fs | |
parent | 0d455c12c6428647547bacccaaced3cae0f35570 (diff) |
Squashfs: Check stream is not NULL in decompressor_multi.c
Fix static checker complaint that stream is not checked in
squashfs_decompressor_destroy().
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/squashfs/decompressor_multi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/squashfs/decompressor_multi.c b/fs/squashfs/decompressor_multi.c index ae54675a3526..d6008a636479 100644 --- a/fs/squashfs/decompressor_multi.c +++ b/fs/squashfs/decompressor_multi.c | |||
@@ -119,11 +119,10 @@ void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk) | |||
119 | kfree(decomp_strm); | 119 | kfree(decomp_strm); |
120 | stream->avail_decomp--; | 120 | stream->avail_decomp--; |
121 | } | 121 | } |
122 | WARN_ON(stream->avail_decomp); | ||
123 | kfree(stream->comp_opts); | ||
124 | kfree(stream); | ||
122 | } | 125 | } |
123 | |||
124 | WARN_ON(stream->avail_decomp); | ||
125 | kfree(stream->comp_opts); | ||
126 | kfree(stream); | ||
127 | } | 126 | } |
128 | 127 | ||
129 | 128 | ||