summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_transport_srp.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2013-06-29 08:59:14 (GMT)
committerJames Bottomley <JBottomley@Parallels.com>2013-07-09 08:17:50 (GMT)
commit518d9df87105a078984c90c75cf6e7f67e3c928c (patch)
tree1563e4e42d9c51e6b33e0c4bf5d171dc35e061ad /drivers/scsi/scsi_transport_srp.c
parente9ce9c86c28c5d44dc408ffe5069597cbbe4663a (diff)
downloadlinux-fsl-qoriq-518d9df87105a078984c90c75cf6e7f67e3c928c.tar.xz
[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 <akinobu.mita@gmail.com> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Acked-by: "Martin K. Petersen" <martin.petersen@oracle.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_srp.c')
0 files changed, 0 insertions, 0 deletions