git: vga_pci: Fix cached resources cleanup and setup driver's softc size

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Oct 17 20:06:04 PDT 2013


commit e8be1190de880a82da339c7b763cadb8bd48e960
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Oct 18 10:59:57 2013 +0800

    vga_pci: Fix cached resources cleanup and setup driver's softc size
    
    - The cached resource was not cleanup even if the underlying resource was
      freed.  Now, if the cached resource reference count drops to zero, the
      underlying resource is freed and the cached resource is cleared.
      Submitted-by: dillon@
    - The driver uses softc, so the softc size in the driver_t needs to be
      setup properly.

Summary of changes:
 sys/bus/pci/vga_pci.c | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e8be1190de880a82da339c7b763cadb8bd48e960


-- 
DragonFly BSD source repository



More information about the Commits mailing list