]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drm: Set cliprects to NULL when changing drawable to having 0 cliprects.
authorZhenyu Wang <zhenyu.z.wang@intel.com>
Fri, 17 Oct 2008 05:15:48 +0000 (13:15 +0800)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Oct 2008 03:42:26 +0000 (13:42 +1000)
commit863842736fb4571b22e0f7f4696bf13eeec57166
tree4a3403a8e0577f7dc562f8e2bf7b4071fc0c6be4
parente9d21d7f5ae1e625f3687d88bb50b00478c533ad
drm: Set cliprects to NULL when changing drawable to having 0 cliprects.

This avoids setting the cliprects pointer to a zero-sized allocation.

Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drawable.c