[igt-dev] [PATCH i-g-t v3 3/7] lib/intel_batchbuffer: Introduce intel_bb

Chris Wilson chris at chris-wilson.co.uk
Mon May 18 09:58:27 UTC 2020


Quoting Zbigniew Kempczyński (2020-05-18 10:09:15)
> +       /* Free relocations */
> +       for (i = 0; i < ibb->num_objects; i++) {
> +               ptr = from_user_pointer(ibb->objects[i].relocs_ptr);
> +               if (ptr)
> +                       free(ptr);

free(NULL) is safe.
-Chris


More information about the igt-dev mailing list