ENGR00125556 GPU: Check device refcnt before free memstore
authorJie Zhou <b30303@freescale.com>
Mon, 26 Jul 2010 04:30:54 +0000 (12:30 +0800)
committerMatt Sealey <neko@excel.(none)>
Tue, 10 Aug 2010 16:52:05 +0000 (11:52 -0500)
commit29e496fc89dbf35f62ddd4bcd2086c1168f87470
tree6ad68540f6a87683f1788e97f083717d0a1b1a06
parent4bb70f55fc4229942f71c4d3efdc2e665e373fdd
ENGR00125556 GPU: Check device refcnt before free memstore

memstore should only be freed when the device has been stopped with
device->refcnt equalling zero.

Signed-off-by: Jie Zhou <b30303@freescale.com>
drivers/mxc/amd-gpu/common/gsl_device.c