diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index a34ecc111..0aa9c421b 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -911,7 +911,8 @@ NewInputDeviceRequest (InputOption *options, InputAttributes *attrs, if (!idev->identifier) { xf86Msg(X_ERROR, "No device identifier specified (ignoring)\n"); - return BadMatch; + rval = BadMatch; + goto unwind; } rval = xf86NewInputDevice(idev, pdev,