Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed4f381e authored by Phillip Lougher's avatar Phillip Lougher
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
Reviewed-by: default avatarMinchan Kim <minchan@kernel.org>
parent 0d455c12
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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,