Skip to content

Commit

Permalink
Squashfs: Check stream is not NULL in decompressor_multi.c
Browse files Browse the repository at this point in the history
Fix static checker complaint that stream is not checked in
squashfs_decompressor_destroy().

Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Phillip Lougher <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
  • Loading branch information
plougher committed Nov 20, 2013
1 parent 0d455c1 commit ed4f381
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fs/squashfs/decompressor_multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ 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);
}

WARN_ON(stream->avail_decomp);
kfree(stream->comp_opts);
kfree(stream);
}


Expand Down

0 comments on commit ed4f381

Please sign in to comment.