summaryrefslogtreecommitdiffstats
path: root/net/can/raw.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-04-21 09:47:00 +0200
committerIngo Molnar <mingo@elte.hu>2010-04-21 09:47:05 +0200
commitac0053fd51d2bac09a7d4b4a59f6dac863bd4373 (patch)
tree00c32e14428853f352fa3828d0131653ad6a7c69 /net/can/raw.c
parentb15c7b1cee119999e9eafcd602d24a595e77adac (diff)
parent01bf0b64579ead8a82e7cfc32ae44bc667e7ad0f (diff)
downloadlinux-ac0053fd51d2bac09a7d4b4a59f6dac863bd4373.tar.bz2
Merge commit 'v2.6.34-rc5' into tracing/core
Merge reason: pick up latest -rc's. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'net/can/raw.c')
-rw-r--r--net/can/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/raw.c b/net/can/raw.c
index 3a7dffb6519c..da99cf153b33 100644
--- a/net/can/raw.c
+++ b/net/can/raw.c
@@ -445,7 +445,7 @@ static int raw_setsockopt(struct socket *sock, int level, int optname,
return -EFAULT;
}
} else if (count == 1) {
- if (copy_from_user(&sfilter, optval, optlen))
+ if (copy_from_user(&sfilter, optval, sizeof(sfilter)))
return -EFAULT;
}