Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63867
b: refs/heads/master
c: 96ddbf5
h: refs/heads/master
i:
  63865: cec2dca
  63863: 1c9a33a
v: v3
  • Loading branch information
David Brownell authored and Linus Torvalds committed Aug 11, 2007
1 parent 5ae9fc4 commit d50879a
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: 4a2a4da43995864786d59f5f0ebf42c0c1e2cdd1
refs/heads/master: 96ddbf504a05502800e7cbeb4d08abbcc206c51c
4 changes: 3 additions & 1 deletion trunk/drivers/spi/spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ static int spidev_message(struct spidev_data *spidev,

if (u_tmp->rx_buf) {
k_tmp->rx_buf = buf;
if (!access_ok(VERIFY_WRITE, u_tmp->rx_buf, u_tmp->len))
if (!access_ok(VERIFY_WRITE, (u8 __user *)
(ptrdiff_t) u_tmp->rx_buf,
u_tmp->len))
goto done;
}
if (u_tmp->tx_buf) {
Expand Down

0 comments on commit d50879a

Please sign in to comment.