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:20:09 +0000 (09:20 +0200)
commit268143ee0b8d71975bf16056579da57ee9e91be0
tree021cd9be5d9470e1cf63aa6723812e1b78830be5
parent73aa57ac7cc31b23e67d885015a61a247b3bc862
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