From: Akinobu Mita Date: Sat, 29 Jun 2013 08:59:14 +0000 (+0900) Subject: [SCSI] scsi_debug: fix invalid address passed to kunmap_atomic() X-Git-Tag: v3.11-rc1~6^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=518d9df87105a078984c90c75cf6e7f67e3c928c;p=pandora-kernel.git [SCSI] scsi_debug: fix invalid address passed to kunmap_atomic() In the function prot_verify_write(), the kmap address 'daddr' is incremented in the loop for each data page. Finally 'daddr' reaches the next page boundary in the end of the loop, and the invalid address is passed to kunmap_atomic(). Fix the issue by not incrementing 'daddr' in the loop and offsetting it by the loop counter on demand. Signed-off-by: Akinobu Mita Acked-by: Douglas Gilbert Acked-by: "Martin K. Petersen" Signed-off-by: James Bottomley --- Reading git-diff-tree failed