diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 05:59:37 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 08:20:42 -0400 |
| commit | dbb6be6d5e974c42bbecd183effaa0df69e1dd8b (patch) | |
| tree | 5735cb47e70853d057a9881dd0ce44b83e88fa63 /net/can/raw.c | |
| parent | 6a867a395558a7f882d041783e4cdea6744ca2bf (diff) | |
| parent | b57f95a38233a2e73b679bea4a5453a1cc2a1cc9 (diff) | |
Merge branch 'linus' into timers/core
Reason: Further posix_cpu_timer patches depend on mainline changes
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net/can/raw.c')
| -rw-r--r-- | net/can/raw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/can/raw.c b/net/can/raw.c index abca920440b5..da99cf153b33 100644 --- a/net/can/raw.c +++ b/net/can/raw.c | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | #include <linux/init.h> | 45 | #include <linux/init.h> |
| 46 | #include <linux/uio.h> | 46 | #include <linux/uio.h> |
| 47 | #include <linux/net.h> | 47 | #include <linux/net.h> |
| 48 | #include <linux/slab.h> | ||
| 48 | #include <linux/netdevice.h> | 49 | #include <linux/netdevice.h> |
| 49 | #include <linux/socket.h> | 50 | #include <linux/socket.h> |
| 50 | #include <linux/if_arp.h> | 51 | #include <linux/if_arp.h> |
| @@ -444,7 +445,7 @@ static int raw_setsockopt(struct socket *sock, int level, int optname, | |||
| 444 | return -EFAULT; | 445 | return -EFAULT; |
| 445 | } | 446 | } |
| 446 | } else if (count == 1) { | 447 | } else if (count == 1) { |
| 447 | if (copy_from_user(&sfilter, optval, optlen)) | 448 | if (copy_from_user(&sfilter, optval, sizeof(sfilter))) |
| 448 | return -EFAULT; | 449 | return -EFAULT; |
| 449 | } | 450 | } |
| 450 | 451 | ||
