artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af8eca0
)
drm/i915/display: Check source height is > 0
author
jsg
<jsg@openbsd.org>
Wed, 25 Jan 2023 01:53:30 +0000
(
01:53
+0000)
committer
jsg
<jsg@openbsd.org>
Wed, 25 Jan 2023 01:53:30 +0000
(
01:53
+0000)
From Drew Davenport
597747eb58a7c8deb131f89aad7e136dbb63ef7a
in linux-6.1.y/6.1.8
8565c502e7c156d190d8e6d36e443f51b257f165
in mainline linux
sys/dev/pci/drm/i915/display/skl_universal_plane.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/i915/display/skl_universal_plane.c
b/sys/dev/pci/drm/i915/display/skl_universal_plane.c
index
7cb7130
..
bc523a3
100644
(file)
--- a/
sys/dev/pci/drm/i915/display/skl_universal_plane.c
+++ b/
sys/dev/pci/drm/i915/display/skl_universal_plane.c
@@
-1620,7
+1620,7
@@
static int skl_check_main_surface(struct intel_plane_state *plane_state)
u32 offset;
int ret;
- if (w > max_width || w < min_width || h > max_height) {
+ if (w > max_width || w < min_width || h > max_height
|| h < 1
) {
drm_dbg_kms(&dev_priv->drm,
"requested Y/RGB source size %dx%d outside limits (min: %dx1 max: %dx%d)\n",
w, h, min_width, max_width, max_height);