]> www.infradead.org Git - users/jedix/linux-maple.git/commit
target/user: Fix inconsistent kmap_atomic/kunmap_atomic
authorSagi Grimberg <sagig@mellanox.com>
Thu, 11 Jun 2015 16:58:34 +0000 (19:58 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 23 Jun 2017 04:10:42 +0000 (21:10 -0700)
commit6b10ac7c262d7a2fb16bb7d5a133da05f721ba1a
tree02cde9e4e992cba369e5c1bc19582c98c66ed950
parente0de2beab4e41312024b1f3fe7114f079fb804fb
target/user: Fix inconsistent kmap_atomic/kunmap_atomic

Pointers that are mapped by kmap_atomic() + offset must
be unmapped without the offset. That would cause problems
if the SG element length exceeds the PAGE_SIZE limit.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Orabug: 25395066
(cherry picked from commit e2e21bd8f979a24462070cc89fae11e819cae90a)
Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Reviewed-by: Shan Hai <shan.hai@oracle.com>
drivers/target/target_core_user.c