mirror of
https://github.com/torvalds/linux.git
synced 2026-10-08 03:26:02 +02:00
The rotation argument to drm_plane_create_rotation_property() is set to
DRM_MODE_ROTATE_0, and the device reported rotation bitmask is used as
the supported_rotations argument. The driver never validates that
GUD_ROTATION_0 is present, so a device that omits it from its
GUD_PROPERTY_ROTATION triggers the
WARN_ON(rotation & ~supported_rotations) in
drm_plane_create_rotation_property()
Fix this by skipping the creation of rotation property if the device
doesn't have the GUD_ROTATION_0 bit
Fixes:
|
||
|---|---|---|
| .. | ||
| gud_connector.c | ||
| gud_drv.c | ||
| gud_internal.h | ||
| gud_pipe.c | ||
| Kconfig | ||
| Makefile | ||