From 330a8abb28a997e8fe2b61cef8f1197d9807afeb Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 17 Jun 2009 11:50:46 -0700 Subject: [PATCH] datapath: Fix ODP_PORT_DEL handling of bad user memory read. --- datapath/datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0