projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dac8761
)
can: avoids a false warning
author
Eric Dumazet
<
[email protected]
>
Fri, 9 Apr 2010 23:47:31 +0000
(23:47 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 13 Apr 2010 10:03:14 +0000
(
03:03
-0700)
At this point optlen == sizeof(sfilter) but some compilers are dumb.
Reported-by: Németh Márton <
[email protected]
Signed-off-by: Eric Dumazet <
[email protected]
>
Acked-by: Oliver Hartkopp <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/can/raw.c
patch
|
blob
|
history
diff --git
a/net/can/raw.c
b/net/can/raw.c
index 3a7dffb6519ce9083b876b64f823cffcb1020c3d..da99cf153b33737ce45a06e71fc89037b96096b3 100644
(file)
--- 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;
}