firmware: Kconfig: ROCKCHIP_SIP depends on HAVE_ARM_SMCCC and ARCH_ROCKCHIP
[firefly-linux-kernel-4.4.55.git] / fs / squashfs / decompressor_multi.c
index ae54675a352660bf93e266f9fc1b75f7584f03f2..d6008a636479649639f4ecee6a74545d3055fc34 100644 (file)
@@ -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);
 }