drm/qxl: use kmalloc_array to alloc reloc_info in qxl_process_single_command

commit 34855706c3 upstream.

This avoids integer overflows on 32bit machines when calculating
reloc_info size, as reported by Alan Cox.

Cc: gnomes@lxorguk.ukuu.org.uk
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Gerd Hoffmann 2016-02-16 14:25:00 +01:00 • committed by Luis Henriques
commit 14aa81c8a2