[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJedcCy5TbdskDVK5Z2-Bm9gTG+sbo1KkFn3_2n65Sno7xG+ag@mail.gmail.com>
Date: Mon, 3 Oct 2022 12:36:56 +0800
From: Zheng Hacker <hackerzheng666@...il.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: Zheng Wang <zyytlz.wz@....com>, 1002992920@...com,
airlied@...ux.ie, alex000young@...il.com,
dri-devel@...ts.freedesktop.org, intel-gfx@...ts.freedesktop.org,
jani.nikula@...ux.intel.com, linux-kernel@...r.kernel.org,
security@...nel.org, tvrtko.ursulin@...ux.intel.com
Subject: Re: [PATCH] drm/i915/gvt: fix double free bug in split_2MB_gtt_entry
> 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
Powered by blists - more mailing lists