• Akinobu Mita's avatar
    target: Fix inconsistent address passed to kunmap_atomic() in sbc_dif_copy_prot() · 57636388
    Akinobu Mita authored
    In sbc_dif_copy_prot(), the addresses passed to kunmap_atomic() are
    inconsistent with the addresses which are mapped by kmap_atomic().
    That could be problematic if an SG element has its length larger than
    PAGE_SIZE as kunmap_atomic() will attempt to unmap different page.
    Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
    Cc: Nicholas Bellinger <nab@linux-iscsi.org>
    Cc: Sagi Grimberg <sagig@mellanox.com>
    Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
    Cc: target-devel@vger.kernel.org
    Cc: linux-scsi@vger.kernel.org
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    57636388
target_core_sbc.c 36.4 KB