From: Ben Pfaff Date: Wed, 17 Jun 2009 18:50:46 +0000 (-0700) Subject: datapath: Fix ODP_PORT_DEL handling of bad user memory read. X-Git-Tag: v0.90.3~21 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=330a8abb28a997e8fe2b61cef8f1197d9807afeb;p=sliver-openvswitch.git datapath: Fix ODP_PORT_DEL handling of bad user memory read. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index e1fd21f5c..7299cd17d 100644 --- 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); }