Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376996
b: refs/heads/master
c: ac4e97a
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell authored and Jens Axboe committed May 30, 2013
1 parent 46978d9 commit 049de18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4997b72ee62930cb841d185398ea547d979789f4
refs/heads/master: ac4e97abce9b80c020e7113325f49e58b7b15e3f
3 changes: 3 additions & 0 deletions trunk/include/linux/scatterlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ static inline struct page *sg_page(struct scatterlist *sg)
static inline void sg_set_buf(struct scatterlist *sg, const void *buf,
unsigned int buflen)
{
#ifdef CONFIG_DEBUG_SG
BUG_ON(!virt_addr_valid(buf));
#endif
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
}

Expand Down

0 comments on commit 049de18

Please sign in to comment.