mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
dri: Assert pointer is not null before dereferencing.
This commit is contained in:
parent
307071fe1e
commit
e63f532d26
1 changed files with 1 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ static int driBindContext(__DRIcontext *pcp,
|
|||
** initialize the drawable information if has not been done before.
|
||||
*/
|
||||
|
||||
assert(psp);
|
||||
if (!psp->dri2.enabled) {
|
||||
if (pdp && !pdp->pStamp) {
|
||||
DRM_SPINLOCK(&psp->pSAREA->drawable_lock, psp->drawLockID);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue