Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14950
b: refs/heads/master
c: 4d5cda0
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and James Bottomley committed Dec 2, 2005
1 parent 5e83ac8 commit 3c66d84
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: 032c09d76cdb448484859cc84dac4bba8f5f8f14
refs/heads/master: 4d5cda069b3f0a3bbc18576bc15903ed665d0295
4 changes: 3 additions & 1 deletion trunk/drivers/scsi/sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1860,9 +1860,11 @@ st_map_user_pages(struct scatterlist *sgl, const unsigned int max_pages,
unlock_page(pages[j]); */
res = 0;
out_unmap:
if (res > 0)
if (res > 0) {
for (j=0; j < res; j++)
page_cache_release(pages[j]);
res = 0;
}
kfree(pages);
return res;
}
Expand Down

0 comments on commit 3c66d84

Please sign in to comment.