Commit 3d4b3f25 authored by Dave Airlie's avatar Dave Airlie

intel: free bus id in error path after printing it out.

the error message prints out a freed string, spotted during
code reappropriation to radeon driver.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 31d5f84b
......@@ -649,10 +649,10 @@ static Bool i830_open_drm_master(ScrnInfoPtr scrn)
intel->drmSubFD = drmOpen("i915", busid);
if (intel->drmSubFD == -1) {
xfree(busid);
xf86DrvMsg(scrn->scrnIndex, X_ERROR,
"[drm] Failed to open DRM device for %s: %s\n",
busid, strerror(errno));
xfree(busid);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment