Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292830
b: refs/heads/master
c: a1edf9c
h: refs/heads/master
v: v3
  • Loading branch information
Andy Grover authored and Nicholas Bellinger committed Feb 25, 2012
1 parent 555bc81 commit 91da4c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16786454acec0e0e55e32d508b3058b32c1f23f3
refs/heads/master: a1edf9cf6d1efed2981fcf6e4caa704fbb1bd093
6 changes: 4 additions & 2 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -3546,10 +3546,12 @@ EXPORT_SYMBOL(transport_kmap_data_sg);

void transport_kunmap_data_sg(struct se_cmd *cmd)
{
if (!cmd->t_data_nents)
if (!cmd->t_data_nents) {
return;
else if (cmd->t_data_nents == 1)
} else if (cmd->t_data_nents == 1) {
kunmap(sg_page(cmd->t_data_sg));
return;
}

vunmap(cmd->t_data_vmap);
cmd->t_data_vmap = NULL;
Expand Down

0 comments on commit 91da4c5

Please sign in to comment.