udl-kms: fix crash due to uninitialized memory
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 3 Jun 2018 14:40:57 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:38 +0000 (09:26 +0200)
commitc0357c1895aedbcbbd9a2eefbff9504f904161f7
tree4eb1db5b058170843289fe78372ddcf8f8710152
parent86c18c5a4bc5dbd86ddd74da2735188c4b09692a
udl-kms: fix crash due to uninitialized memory

commit 09a00abe3a9941c2715ca83eb88172cd2f54d8fd upstream.

We must use kzalloc when allocating the fb_deferred_io structure.
Otherwise, the field first_io is undefined and it causes a crash.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/udl/udl_fb.c