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 ODP_PORT_DEL handling of bad user memory read.
[sliver-openvswitch.git]
/
datapath
/
datapath.c
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index
e1fd21f
..
7299cd1
100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-1355,7
+1355,7
@@
static long openvswitch_ioctl(struct file *f, unsigned int cmd,
case ODP_PORT_DEL:
err = get_user(port_no, (int __user *)argp);
if (err)
-
break
;
+
return err
;
return del_port(dp_idx, port_no);
}