udl-kms: fix crash due to uninitialized memory
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 3 Jun 2018 14:40:57 +0000 (16:40 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jul 2018 22:03:48 +0000 (08:03 +1000)
commit09a00abe3a9941c2715ca83eb88172cd2f54d8fd
tree62ad3afee5fc522e67ca8fc5016c2ffde1c854ef
parent542bb9788a1f485eb1a2229178f665d8ea166156
udl-kms: fix crash due to uninitialized memory

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>
drivers/gpu/drm/udl/udl_fb.c