Skip to content
Commit 4735ca71 authored by Andreas Baierl's avatar Andreas Baierl Committed by Eric Engestrom
Browse files

xf86drm: Fix segmentation fault while parsing device info



This fixes a bug, which was introduced with commit ee798b98
"xf85drm: de-duplicate drmParse{Platform.Host1x}{Bus,Device}Info".
where accessing *compatible[i] with i>0 results in a segfault.

Signed-off-by: default avatarAndreas Baierl <ichgeh@imkreisrum.de>
Fixes: ee798b98 "xf85drm: de-duplicate drmParse{Platform.Host1x}{Bus,Device}Info"
Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
[Eric: add the same fix to the free() below]
Signed-off-by: default avatarEric Engestrom <eric.engestrom@intel.com>
parent 0b032a64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment