[PATCH] drm/prime: fix lifetime issue with storing dma_buf on import list for exports

2012-12-18 Thread Dave Airlie
From: Dave Airlie So when we export an dma buf we store it on the import list for that file priv, so we can trap later imports of a buffer we exported from ourselves. However there is nothing to clean that pointer up if the dma-buf gets released internally, since we don't hold a reference to it.

[PATCH] drm/prime: fix lifetime issue with storing dma_buf on import list for exports

2012-12-17 Thread Dave Airlie
From: Dave Airlie So when we export an dma buf we store it on the import list for that file priv, so we can trap later imports of a buffer we exported from ourselves. However there is nothing to clean that pointer up if the dma-buf gets released internally, since we don't hold a reference to it.