projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: ovs: flow: fix potential illegal memory access in __parse_flow_nlattrs
[platform/kernel/linux-starfive.git]
/
net
/
openvswitch
/
flow.c
diff --git
a/net/openvswitch/flow.c
b/net/openvswitch/flow.c
index
fb36f85
..
410db90
100644
(file)
--- a/
net/openvswitch/flow.c
+++ b/
net/openvswitch/flow.c
@@
-1178,6
+1178,7
@@
static int __parse_flow_nlattrs(const struct nlattr *attr,
if (type > OVS_KEY_ATTR_MAX) {
OVS_NLERR("Unknown key attribute (type=%d, max=%d).\n",
type, OVS_KEY_ATTR_MAX);
+ return -EINVAL;
}
if (attrs & (1 << type)) {