[Mesa-dev] [PATCH 1/6] radeon: initialize hole variable before calling container_of
Marek Olšák
maraeo at gmail.com
Mon Mar 20 15:28:51 UTC 2017
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Thu, Mar 16, 2017 at 3:25 PM, Julien Isorce <julien.isorce at gmail.com> wrote:
> Like in a few other places in that radeon_drm_bo.c file.
>
> CID 715739.
>
> Signed-off-by: Julien Isorce <jisorce at oblong.com>
> ---
> src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
> index d4f4763..f4ed3ce 100644
> --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
> +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
> @@ -258,7 +258,7 @@ static uint64_t radeon_bomgr_find_va(struct radeon_drm_winsys *rws,
> static void radeon_bomgr_free_va(struct radeon_drm_winsys *rws,
> uint64_t va, uint64_t size)
> {
> - struct radeon_bo_va_hole *hole;
> + struct radeon_bo_va_hole *hole = NULL;
>
> size = align(size, rws->info.gart_page_size);
>
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list