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:
dbbd2ad
)
yam: integer underflow in yam_ioctl()
author
Dan Carpenter
<
[email protected]
>
Mon, 14 Oct 2013 12:28:38 +0000
(15:28 +0300)
committer
David S. Miller
<
[email protected]
>
Thu, 17 Oct 2013 19:53:09 +0000
(15:53 -0400)
We cap bitrate at YAM_MAXBITRATE in yam_ioctl(), but it could also be
negative. I don't know the impact of using a negative bitrate but let's
prevent it.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/linux/yam.h
patch
|
blob
|
history
diff --git
a/include/linux/yam.h
b/include/linux/yam.h
index 7fe28228b2742efc0c9eb69c7bbc866f0194ef19..512cdc2fb80f40f99bb1b09fe1d0d4dcfeab345c 100644
(file)
--- a/
include/linux/yam.h
+++ b/
include/linux/yam.h
@@
-77,6
+77,6
@@
struct yamdrv_ioctl_cfg {
struct yamdrv_ioctl_mcs {
int cmd;
- int bitrate;
+
unsigned
int bitrate;
unsigned char bits[YAM_FPGA_SIZE];
};