]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vkms: Fix plane duplicate_state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Nov 2018 10:10:33 +0000 (11:10 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Nov 2018 09:30:39 +0000 (10:30 +0100)
commit42f1116d1d58fe1f53a3c0dbc430a9b426ed2873
tree2a71c1a6a286b660bf128e02a85b2d3514be66ae
parent1fd69118c8e8aff773f4d3f6c9622ca429ea606e
drm/vkms: Fix plane duplicate_state

We need to handle allocation failures and bail out. While at it, tune
the allocation failures down to debug level.

syzbot injected an allocation failure and then hit this WARN_ON.

Reported-by: syzbot+eb6e5365f23c02517dda@syzkaller.appspotmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Cc: Gustavo Padovan <gustavo.padovan@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181128101033.4840-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/vkms/vkms_plane.c