minios: Error case when unbinding unknown port in xc_evtchn_unbind is

missing a return statement.

Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-08-01 09:38:25 +01:00
1 parent e5ba23a1d9
commit 0ae64c2ff8
1 file changed
+4 -1
+4 -1
View File
@@ -259,8 +259,11 @@ int xc_evtchn_unbind(int xce_handle, evtchn_port_t port)
files[xce_handle].evtchn.ports[i].port = -1;
break;
}
if (i == MAX_EVTCHN_PORTS)
if (i == MAX_EVTCHN_PORTS) {
printf("Warning: couldn't find port %"PRId32" for xc handle %x\n", port, xce_handle);
errno = -EINVAL;
return -1;
}
files[xce_handle].evtchn.ports[i].bound = 0;
unbind_evtchn(port);
return 0;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.