drm/udl: take reference to device struct for dma-bufs
authorDave Airlie <airlied@redhat.com>
Tue, 25 Mar 2014 04:38:44 +0000 (14:38 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Mar 2014 02:19:50 +0000 (02:19 +0000)
commit347cf10aed1657a2b385a95f92763a67062c5ad3
tree0e63e153ca002dc47a37e1505b432ac54038e61e
parentb098d6726bbfb94c06d6e1097466187afddae61f
drm/udl: take reference to device struct for dma-bufs

this stops the device from being deleted before all the dma-bufs
on it are freed, this fixes an oops when you unplug a udl device while
it has imported a buffer from another device.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_gem.c