drm/radeon: Fix some leaks on module unload.
authorzrj <rimvydas.jasinskas@gmail.com>
Tue, 10 May 2016 12:59:03 +0000 (15:59 +0300)
committerzrj <zrj@dragonflybsd.org>
Tue, 10 May 2016 13:52:34 +0000 (16:52 +0300)
commit5d6a9071a2c71909238483e0fab4b45d6bb27bb7
treeec8cea1c91a4becf571cd6e4a938b643b5b40c85
parentd920e19426323722b7569dcf0674234dcb322121
drm/radeon: Fix some leaks on module unload.

This prevents leaking of whopping 1008 bytes of M_DRM memory:
  * 512 bytes from radeon/atom.c
  * 440 bytes from radeon/radeon_atombios.c voltage_tables
  * 56 bytes from allocation of struct fb_info *info

fb_info case needs help from syscons, for now let it leak those 56 bytes.
sys/dev/drm/radeon/radeon_device.c
sys/dev/drm/radeon/radeon_fb.c
sys/dev/drm/radeon/radeon_kms.c
sys/dev/drm/radeon/radeon_pm.c