Re: [PATCH] drm/msm: Improve exception handling in msm_gpu_crashstate_capture()

2020-06-13 Thread Markus Elfring
> Function msm_gpu_crashstate_capture maybe called for several > times, and then the state->bos is a potential memleak. Also > the state->pos maybe alloc failed, but now without any handle. > This change is to fix some potential memleak and add error > handle when alloc failed. I suggest to improv

Re: [PATCH] drm/msm: Improve exception handling in msm_gpu_crashstate_capture()

2020-06-12 Thread Greg KH
On Fri, Jun 12, 2020 at 09:36:09AM +0200, Markus Elfring wrote: > > Function msm_gpu_crashstate_capture maybe called for several > > times, and then the state->bos is a potential memleak. Also > > the state->pos maybe alloc failed, but now without any handle. > > This change is to fix some potentia