mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
e5ba23a1d9
commit
0ae64c2ff8
1 file changed
+4
-1
@@ -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;
|
||||
|
||||