Module: Mesa
Branch: master
Commit: e63f532d26d82c06281840a84c73e2e36d7b3e1e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e63f532d26d82c06281840a84c73e2e36d7b3e1e

Author: Vinson Lee <[email protected]>
Date:   Sat Feb 27 02:18:06 2010 -0800

dri: Assert pointer is not null before dereferencing.

---

 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 b80b608..a4fd002 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);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to