qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ui/spice-display: check NULL pointer in interface_release_re


From: P J P
Subject: Re: [PATCH] ui/spice-display: check NULL pointer in interface_release_resource()
Date: Fri, 21 May 2021 11:54:07 +0530 (IST)

+-- On Thu, 20 May 2021, Mauro Matteo Cascella wrote --+
| diff --git a/ui/spice-display.c b/ui/spice-display.c
| index d22781a23d..f59c69882d 100644
| --- a/ui/spice-display.c
| +++ b/ui/spice-display.c
| @@ -561,6 +561,10 @@ static void interface_release_resource(QXLInstance *sin,
|      SimpleSpiceCursor *cursor;
|      QXLCommandExt *ext;
|  
| +    if (!rext.info) {
| +        return;
| +    }
| +
|      ext = (void *)(intptr_t)(rext.info->id);
|      switch (ext->cmd.type) {
|      case QXL_CMD_DRAW:

Looks okay.

Reviewed-by: Prasad J Pandit <pjp@fedoraproject.org>

Thank you.
--
 - P J P
8685 545E B54C 486B C6EB 271E E285 8B5A F050 DE8D




reply via email to

[Prev in Thread] Current Thread [Next in Thread]