[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f02d4f00-965a-12d0-d306-a943e2551184@web.de>
Date: Sun, 31 May 2020 14:14:05 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Dinghao Liu <dinghao.liu@....edu.cn>,
dri-devel@...ts.freedesktop.org, nouveau@...ts.freedesktop.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
Ben Skeggs <bskeggs@...hat.com>,
David Airlie <airlied@...ux.ie>, Kangjie Lu <kjlu@....edu>
Subject: Re: drm/nouveau/clk/gm20b: Fix memory leaks after failed
gk20a_clk_ctor() calls
> In this case, maybe we should check the return value of
> gk20a_clk_ctor() and release clk if it returns -ENOMEM.
All error situations (including failed memory allocations) can matter here.
> And many other functions also have the same issue
> (e.g. gm20b_clk_new_speedo0).
I recommend to increase the error detection and improve the desired
exception handling accordingly.
Regards,
Markus
Powered by blists - more mailing lists