projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
staging
/
vt6656
/
rf.c
diff --git
a/drivers/staging/vt6656/rf.c
b/drivers/staging/vt6656/rf.c
index 593cdc713b0e21413e6044f1fd70a2801c099ada..74c0598e37b7c4b03742b06375a56adc10f34994 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: