projects
/
osmocom-bb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
calypso/uart.c: Fix array bounds checking
[osmocom-bb.git]
/
src
/
target
/
firmware
/
calypso
/
uart.c
diff --git
a/src/target/firmware/calypso/uart.c
b/src/target/firmware/calypso/uart.c
index
d3ede4d
..
bcb56bd
100644
(file)
--- a/
src/target/firmware/calypso/uart.c
+++ b/
src/target/firmware/calypso/uart.c
@@
-427,7
+427,7
@@
int uart_baudrate(uint8_t uart, enum uart_baudrate bdrt)
{
uint16_t div;
- if (bdrt > ARRAY_SIZE(divider))
+ if (bdrt >
=
ARRAY_SIZE(divider))
return -1;
div = divider[bdrt];