Re: [PATCH 1/2] drm/nouveau: Fix runtime PM leak in drm_open()

2018-07-03 Thread Lukas Wunner
[cc -= stable] On Tue, Jul 03, 2018 at 06:05:59PM -0400, Lyude Paul wrote: > Noticed this as I was skimming through, if we fail to allocate memory > for cli we'll end up returning without dropping the runtime PM ref we > got. Additionally, we'll even return the wrong return code! (ret most > likel

[PATCH 1/2] drm/nouveau: Fix runtime PM leak in drm_open()

2018-07-03 Thread Lyude Paul
Noticed this as I was skimming through, if we fail to allocate memory for cli we'll end up returning without dropping the runtime PM ref we got. Additionally, we'll even return the wrong return code! (ret most likely will == 0 here, we want -ENOMEM). Signed-off-by: Lyude Paul Cc: sta...@vger.kern