summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev.c b/udev.c
index bbff89bad5..116acf5389 100644
--- a/udev.c
+++ b/udev.c
@@ -221,6 +221,9 @@ exit_sysbus:
sysbus_disconnect();
exit:
+ if (retval > 0)
+ retval = 0;
+
return -retval;
}