drm: check return values in drm_version
authorAndres Salomon <dilinger@collabora.co.uk>
Tue, 17 Nov 2009 22:41:25 +0000 (14:41 -0800)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Nov 2009 00:02:50 +0000 (10:02 +1000)
commitdad07ca71719598bc990dbdbeda763d15a10e98b
tree8813ec8942e60407663875f37ec862633de84481
parent140a45fc3253746e1e42feafc63509df5d90889e
drm: check return values in drm_version

In drm_version, actually check the results from function calls so that
we're not potentially passing garbage back to userspace.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c