[PATCH] drm/i915/gvt: fix double free bug in split_2MB_gtt_entry

Zheng Hacker hackerzheng666 at gmail.com
Mon Oct 3 04:36:56 UTC 2022


> That is a horrible way to make an api (and it should be a bool too.)
> Now every time you see this call in the code, you have to go look up
> what the last parameter means.  Just make 2 functions, one that does the
> "is error" thing, and one that does not, and that will be much easier to
> maintain and understand for the next 10+ years.

Got it. I'll figure out anothr way. :)

Thanks,
Zheng Wang


More information about the dri-devel mailing list