drm: Fix use-after-free in the shadow-attache exit code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 30 Jan 2014 16:58:38 +0000 (17:58 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Mar 2014 10:23:31 +0000 (11:23 +0100)
commitc94adc4a65c67a79f0d19285bf5c32fe4c00176f
treeb99db2b775b3c0de3fc631c09abe8dceb2f47a2f
parent04cfe97eb11c28848d14ba8c88124da31a9f881c
drm: Fix use-after-free in the shadow-attache exit code

This regression has been introduced in

commit b3f2333de8e81b089262b26d52272911523e605f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Dec 11 11:34:31 2013 +0100

    drm: restrict the device list for shadow attached drivers

Reported-by: Dave Jones <davej@redhat.com>
Cc: Dave Jones <davej@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
drivers/gpu/drm/drm_pci.c