[SCSI] scsi_debug: fix map_region and unmap_region oops
commit9ab98f57b3e1d73cd0720d29c21b687ba609cde9
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Sun, 27 Jun 2010 16:04:45 +0000 (28 01:04 +0900)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:03:55 +0000 (27 12:03 -0500)
tree1a6350e608c03b6335bcfc0249bb0b6589f3a06c
parent4289a08680d646dcc18e291cb437a292738e504f
[SCSI] scsi_debug: fix map_region and unmap_region oops

map_region and unmap_region could access to invalid memory area since
they don't check the size boundary.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_debug.c