mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 22:20:14 +01:00
dri: Fix potential null pointer dereference in driBindContext.
(cherry picked from commit 919898e92f)
This commit is contained in:
parent
f622b649fb
commit
c994f08eb1
1 changed files with 2 additions and 1 deletions
|
|
@ -167,11 +167,12 @@ static int driBindContext(__DRIcontext *pcp,
|
||||||
__DRIdrawable *pdp,
|
__DRIdrawable *pdp,
|
||||||
__DRIdrawable *prp)
|
__DRIdrawable *prp)
|
||||||
{
|
{
|
||||||
__DRIscreenPrivate *psp = pcp->driScreenPriv;
|
__DRIscreenPrivate *psp;
|
||||||
|
|
||||||
/* Bind the drawable to the context */
|
/* Bind the drawable to the context */
|
||||||
|
|
||||||
if (pcp) {
|
if (pcp) {
|
||||||
|
psp = pcp->driScreenPriv;
|
||||||
pcp->driDrawablePriv = pdp;
|
pcp->driDrawablePriv = pdp;
|
||||||
pcp->driReadablePriv = prp;
|
pcp->driReadablePriv = prp;
|
||||||
if (pdp) {
|
if (pdp) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue