mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] gpu/drm: fix memory leak when radeon_driver_load_kms fails
@ 2009-07-31  8:55 Xiaotian Feng
  2009-07-31  8:55 ` [PATCH 1/4] gpu/drm/radeon: fix memory leak in radeon_driver_load_kms Xiaotian Feng
  0 siblings, 1 reply; 5+ messages in thread
From: Xiaotian Feng @ 2009-07-31  8:55 UTC (permalink / raw)
  To: airlied, dri-devel; +Cc: linux-kernel

I've noticed a bundle of kmemleak reports on drm. When I look into dmesg,
I found: "[drm:radeon_driver_load_kms] *ERROR* Failed to initialize radeon,
disabling IOCTL". 

In radeon_driver_load_kms, if radeon_device_init fails, rdev is not freed.
Then radeon_driver_load_kms as dev->driver->load, if load fails in
drm_get_dev, memories allocated in drm_fill_in_dev will not be freed.

This patchset fixes those memory leaks, after this patchset applied, I didn't
see those drm kmemleak report.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-31  8:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-31  8:55 [PATCH 0/4] gpu/drm: fix memory leak when radeon_driver_load_kms fails Xiaotian Feng
2009-07-31  8:55 ` [PATCH 1/4] gpu/drm/radeon: fix memory leak in radeon_driver_load_kms Xiaotian Feng
2009-07-31  8:55   ` [PATCH 2/4] gpu/drm: fix memory leak in drm_fill_in_dev fail path Xiaotian Feng
2009-07-31  8:55     ` [PATCH 3/4] gpu/drm: introduce drm_cleanup_dev to cleanup memories allocated from drm_fill_in_dev Xiaotian Feng
2009-07-31  8:55       ` [PATCH 4/4] gpu/drm: fix memory leak if dev->driver->load fails Xiaotian Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome