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
datapath: fix dp check in ovs_dp_reset_user_features
[sliver-openvswitch.git]
/
datapath
/
datapath.c
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index
edbbb88
..
a7839a1
100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-1179,7
+1179,7
@@
static void ovs_dp_reset_user_features(struct sk_buff *skb, struct genl_info *in
struct datapath *dp;
dp = lookup_datapath(sock_net(skb->sk), info->userhdr, info->attrs);
- if (
!dp
)
+ if (
IS_ERR(dp)
)
return;
WARN(dp->user_features, "Dropping previously announced user features\n");