drm/qxl: fix smatch warnings
authorDave Airlie <airlied@redhat.com>
Tue, 16 Apr 2013 03:36:00 +0000 (13:36 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 16 Apr 2013 03:36:00 +0000 (13:36 +1000)
commit62c8ba7c58e4163f975c5f8b5a3dd5f306a2deda
tree0172a68cb13daa74b4c7003946c44d19076b54ee
parent6d01f1f54c01877baad11389291c1aeab9c11e0f
drm/qxl: fix smatch warnings

drivers/gpu/drm/qxl/qxl_display.c:99 qxl_alloc_client_monitors_config() error: dereferencing freed memory 'qdev->client_monitors_config'
drivers/gpu/drm/qxl/qxl_object.c:66 qxl_ttm_placement_from_domain() warn: bitwise AND condition is false here
drivers/gpu/drm/qxl/qxl_ioctl.c:353 qxl_clientcap_ioctl() warn: buffer overflow 'qdev->rom->client_capabilities' 58 <= 58

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c
drivers/gpu/drm/qxl/qxl_ioctl.c
drivers/gpu/drm/qxl/qxl_object.c