mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-07 11:08:05 +02:00
drm: use correct mode destructor
This commit is contained in:
parent
4d5b9f4848
commit
5342845375
1 changed files with 2 additions and 2 deletions
|
|
@ -398,7 +398,7 @@ void drm_mode_prune_invalid(struct drm_device *dev,
|
|||
drm_mode_debug_printmodeline(mode);
|
||||
DRM_DEBUG("Not using %s mode %d\n", mode->name, mode->status);
|
||||
}
|
||||
kfree(mode);
|
||||
drm_mode_destroy(dev, mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -556,7 +556,7 @@ void drm_mode_connector_list_update(struct drm_connector *connector)
|
|||
/* if equal delete the probed mode */
|
||||
mode->status = pmode->status;
|
||||
list_del(&pmode->head);
|
||||
kfree(pmode);
|
||||
drm_mode_destroy(connector->dev, pmode);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue