projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
975a1ac
)
staging: vt6656: [BUG] out of bound array reference in RFbSetPower.
author
Malcolm Priestley
<tvboxspy@gmail.com>
Sun, 7 Oct 2012 07:27:00 +0000
(08:27 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 20:26:40 +0000
(13:26 -0700)
Calling RFbSetPower with uCH zero value will cause out of bound array reference.
This causes 64 bit kernels to oops on boot.
Note: Driver does not function on 64 bit kernels and should be
blacklisted on them.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rf.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6656/rf.c
b/drivers/staging/vt6656/rf.c
index
593cdc7
..
74c0598
100644
(file)
--- a/
drivers/staging/vt6656/rf.c
+++ b/
drivers/staging/vt6656/rf.c
@@
-769,6
+769,9
@@
BYTE byPwr = pDevice->byCCKPwr;
return TRUE;
}
+ if (uCH == 0)
+ return -EINVAL;
+
switch (uRATE) {
case RATE_1M:
case RATE_2M: