Re: [PATCH v2 06/10] zram: avoid access beyond the zram device

2013-06-04 Thread Minchan Kim
On Wed, Jun 05, 2013 at 12:06:04AM +0800, Jiang Liu wrote: > Function valid_io_request() should verify the entire request doesn't > exceed the zram device, otherwise it will cause invalid memory access. Right but you need to explain what invalid memory access is and what's the result from that to

[PATCH v2 06/10] zram: avoid access beyond the zram device

2013-06-04 Thread Jiang Liu
Function valid_io_request() should verify the entire request doesn't exceed the zram device, otherwise it will cause invalid memory access. Signed-off-by: Jiang Liu Cc: sta...@vger.kernel.org --- drivers/staging/zram/zram_drv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/stag