git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix off-by-one error in looking up datapaths by index.
[sliver-openvswitch.git]
/
datapath
/
datapath.c
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index
baf1d40
..
9d0cea7
100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-1125,7
+1125,7
@@
static struct genl_ops dp_genl_ops_add_dp = {
struct datapath *dp_get(int dp_idx)
{
- if (dp_idx < 0 || dp_idx > DP_MAX)
+ if (dp_idx < 0 || dp_idx >
=
DP_MAX)
return NULL;
return rcu_dereference(dps[dp_idx]);
}