git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b9fddc9
)
Fix off-by-one error in looking up datapaths by index.
author
Ben Pfaff
<blp@nicira.com>
Tue, 30 Dec 2008 18:48:59 +0000
(10:48 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 13 Jan 2009 01:11:30 +0000
(17:11 -0800)
datapath/datapath.c
patch
|
blob
|
history
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)
{
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]);
}
return NULL;
return rcu_dereference(dps[dp_idx]);
}