Re: [PATCH] omapfb: Fix reference count leak in display_init_sysfs.

2020-05-29 Thread Greg Kroah-Hartman
On Thu, May 28, 2020 at 02:44:23PM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory associated with the object. > Because function oma

[PATCH] omapfb: Fix reference count leak in display_init_sysfs.

2020-05-28 Thread wu000273
From: Qiushi Wu kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Because function omap_dss_put_device() doesn't handle dssdev->kobj, thus we need insert kobject_pu