diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index f507753fe..3aaac93d4 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1244,7 +1244,7 @@ AbortDDX() /* * try to deinitialize all input devices */ - if (xf86Info.pKeyboard) + if (xf86Info.kbdProc && xf86Info.pKeyboard) (xf86Info.kbdProc)(xf86Info.pKeyboard, DEVICE_CLOSE); /*