]> asedeno.scripts.mit.edu Git - linux.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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 23 Jun 2015 07:43:40 +0000 (00:43 -0700)
commite2e21bd8f979a24462070cc89fae11e819cae90a
tree06ab5dcf58dcf1d58f72f53659af9f8090e1e07d
parent7c0d0d51d26497866d2951a35f1736fc765e4fcf
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>
drivers/target/target_core_user.c