uterm: monitor: fix crash during device hotplug
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 12 Aug 2012 11:26:16 +0000 (13:26 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 12 Aug 2012 11:26:16 +0000 (13:26 +0200)
commitd97fc0baf01b1a666429c4dfb8894bed0f7d895c
tree541e9cfeb315487da0b5523c34e967825eb099e9
parentf084da1852ec5291c8cdde6cf0a852bbe7026171
uterm: monitor: fix crash during device hotplug

We must make sure that the returned value is non-NULL, otherwise we crash
during device-change events for non-DRM-Hotplug events.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_monitor.c