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>
This commit is contained in:
Phillip Lougher 2013-11-10 00:02:29 +00:00
parent 0d455c12c6
commit ed4f381ec1
1 changed files with 3 additions and 4 deletions

View File

@ -119,12 +119,11 @@ void squashfs_decompressor_destroy(struct squashfs_sb_info *msblk)
kfree(decomp_strm);
stream->avail_decomp--;
}
}
WARN_ON(stream->avail_decomp);
kfree(stream->comp_opts);
kfree(stream);
}
}
static struct decomp_stream *get_decomp_stream(struct squashfs_sb_info *msblk,