[PATCH] drm: qxl: ensure surf.data is ininitialized

Gerd Hoffmann kraxel at redhat.com
Wed Jun 9 07:00:23 UTC 2021


On Tue, Jun 08, 2021 at 05:13:13PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> The object surf is not fully initialized and the uninitialized
> field surf.data is being copied by the call to qxl_bo_create
> via the call to qxl_gem_object_create. Set surf.data to zero
> to ensure garbage data from the stack is not being copied.
> 
> Addresses-Coverity: ("Uninitialized scalar variable")
> Fixes: f64122c1f6ad ("drm: add new QXL driver. (v1.4)")
> Signed-off-by: Colin Ian King <colin.king at canonical.com>

Pushed to drm-misc-next.

thanks,
  Gerd



More information about the dri-devel mailing list