Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7720
b: refs/heads/master
c: 07542b8
h: refs/heads/master
v: v3
  • Loading branch information
James Bottomley committed Sep 5, 2005
1 parent e359075 commit f955309
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 61a7afa2c476a3be261cf88a95b0dea0c3bd29d4
refs/heads/master: 07542b832309b93a2741cd162a391ab909f66438
8 changes: 4 additions & 4 deletions trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
*/

static char *verstr = "20050802";
static char *verstr = "20050830";

#include <linux/module.h>

Expand Down Expand Up @@ -4444,12 +4444,12 @@ static int st_map_user_pages(struct scatterlist *sgl, const unsigned int max_pag
static int sgl_map_user_pages(struct scatterlist *sgl, const unsigned int max_pages,
unsigned long uaddr, size_t count, int rw)
{
unsigned long end = (uaddr + count + PAGE_SIZE - 1) >> PAGE_SHIFT;
unsigned long start = uaddr >> PAGE_SHIFT;
const int nr_pages = end - start;
int res, i, j;
unsigned int nr_pages;
struct page **pages;

nr_pages = ((uaddr & ~PAGE_MASK) + count + ~PAGE_MASK) >> PAGE_SHIFT;

/* User attempted Overflow! */
if ((uaddr + count) < uaddr)
return -EINVAL;
Expand Down

0 comments on commit f955309

Please sign in to comment.