diff options
author | Javier Martinez Canillas <[email protected]> | 2023-07-26 12:54:28 +0200 |
---|---|---|
committer | Javier Martinez Canillas <[email protected]> | 2023-07-26 16:33:19 +0200 |
commit | 45b58669e532bcdfd6e1593488d1f23eabd55428 (patch) | |
tree | 1ce1b1e66fc7f1b1d98afe94f8acf12b6eaab0da /drivers/usb/cdns3 | |
parent | 4cd179a312c60587ab15792f04febae3bed5459b (diff) |
drm/ssd130x: Allocate buffer in the plane's .atomic_check() callback
Drivers are not allowed to fail after drm_atomic_helper_swap_state() has
been called and the new atomic state is stored into the current sw state.
Since the struct ssd130x_device .data_array is allocated in the encoder's
.atomic_enable callback, the operation can fail and this is after the new
state has been stored. So it can break an atomic mode settings assumption.
Fix this by having custom helpers to allocate, duplicate and destroy the
plane state, that will take care of allocating and freeing these buffers.
Suggested-by: Maxime Ripard <[email protected]>
Signed-off-by: Javier Martinez Canillas <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Tested-by: Geert Uytterhoeven <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/usb/cdns3')
0 files changed, 0 insertions, 0 deletions