]> git.baikalelectronics.ru Git - kernel.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)
commit624ada848b32ac634456d6302ccfabd671136d46
tree06ab5dcf58dcf1d58f72f53659af9f8090e1e07d
parentd99feed04cbe0df815295e7ddd087b214da0aaec
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