drm/nv50/fb: Fix nullptr-deref on IGPs
authorRoy Spliet <r.spliet@student.tudelft.nl>
Wed, 9 Jan 2013 02:40:33 +0000 (03:40 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 31 Jan 2013 05:59:57 +0000 (15:59 +1000)
commit526810adb93554e17bdb83023a01cfa8758960b2
treee5c1c2f5fc7d0598be4ecf9b1ec5e60f8199aa2c
parent1e98380cbd3894de2b3c1ea182d62e946555f7d0
drm/nv50/fb: Fix nullptr-deref on IGPs

When COMP_MAX_TAG == 0, the tags mm was uninitialised. Fixed by initialising with zero length.

v2: Fix style error

Signed-off-by: Roy Spliet <r.spliet@student.tudelft.nl>
Tested-by: Roy Spliet <r.spliet@student.tudelft.nl>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/base.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv50.c