diff options
author | Vinson Lee <vlee@vmware.com> | 2010-02-27 02:18:06 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-02-27 02:18:06 -0800 |
commit | e63f532d26d82c06281840a84c73e2e36d7b3e1e (patch) | |
tree | f2c4a5f95816856a7fe1cc686967f93a77bbfa05 /src | |
parent | 307071fe1e2bfacba9780e2397785495ae0b0ea1 (diff) |
dri: Assert pointer is not null before dereferencing.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index b80b608f4b..a4fd002664 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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); |