Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25812
b: refs/heads/master
c: c06bb7f
h: refs/heads/master
v: v3
  • Loading branch information
Douglas Gilbert authored and James Bottomley committed Apr 13, 2006
1 parent 4917de0 commit ce8d98b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: d6159c17c2c76963a8067d1e1ac3c4c36c05e674
refs/heads/master: c06bb7f514567efa39062a781679120e51caa818
4 changes: 3 additions & 1 deletion trunk/drivers/scsi/sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1799,8 +1799,10 @@ sg_build_direct(Sg_request * srp, Sg_fd * sfp, int dxfer_len)
res = st_map_user_pages(schp->buffer, mx_sc_elems,
(unsigned long)hp->dxferp, dxfer_len,
(SG_DXFER_TO_DEV == hp->dxfer_direction) ? 1 : 0);
if (res <= 0)
if (res <= 0) {
sg_remove_scat(schp);
return 1;
}
schp->k_use_sg = res;
schp->dio_in_use = 1;
hp->info |= SG_INFO_DIRECT_IO;
Expand Down

0 comments on commit ce8d98b

Please sign in to comment.