Re: [PATCH 4/4] Squashfs: Check stream is not NULL in decompressor_multi.c

2013-11-19 Thread Minchan Kim
On Thu, Nov 14, 2013 at 05:14:19AM +, Phillip Lougher wrote:
> Fix static checker complaint that stream is not checked in
> squashfs_decompressor_destroy().
> 
> Reported-by: Dan Carpenter 
> Signed-off-by: Phillip Lougher 

Thanks for handling my fault.

Reviewd-by: Minchan Kim 

-- 
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 4/4] Squashfs: Check stream is not NULL in decompressor_multi.c

2013-11-19 Thread Minchan Kim
On Thu, Nov 14, 2013 at 05:14:19AM +, Phillip Lougher wrote:
 Fix static checker complaint that stream is not checked in
 squashfs_decompressor_destroy().
 
 Reported-by: Dan Carpenter dan.carpen...@oracle.com
 Signed-off-by: Phillip Lougher phil...@squashfs.org.uk

Thanks for handling my fault.

Reviewd-by: Minchan Kim minc...@kernel.org

-- 
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 4/4] Squashfs: Check stream is not NULL in decompressor_multi.c

2013-11-13 Thread Phillip Lougher
Fix static checker complaint that stream is not checked in
squashfs_decompressor_destroy().

Reported-by: Dan Carpenter 
Signed-off-by: Phillip Lougher 
---
 fs/squashfs/decompressor_multi.c |7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/squashfs/decompressor_multi.c b/fs/squashfs/decompressor_multi.c
index ae54675..d6008a6 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)
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);
 }
 
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 4/4] Squashfs: Check stream is not NULL in decompressor_multi.c

2013-11-13 Thread Phillip Lougher
Fix static checker complaint that stream is not checked in
squashfs_decompressor_destroy().

Reported-by: Dan Carpenter dan.carpen...@oracle.com
Signed-off-by: Phillip Lougher phil...@squashfs.org.uk
---
 fs/squashfs/decompressor_multi.c |7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/squashfs/decompressor_multi.c b/fs/squashfs/decompressor_multi.c
index ae54675..d6008a6 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)
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);
 }
 
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/