Before the patch the system required rebooting (driver crash and/or kernel panic). Now the application gets terminated.
This follows the pattern in the other parts of this code that checks that pointer.
Peter.
-----Original Message----- From: Chris Wilson [mailto:chris@chris-wilson.co.uk] Sent: Thursday, April 23, 2015 3:20 PM To: Antoine, Peter Cc: intel-gfx@lists.freedesktop.org; airlied@redhat.com; dri-devel@lists.freedesktop.org; daniel.vetter@ffwll.ch Subject: Re: [Intel-gfx] [PATCH 1/5] drm: Kernel Crash in drm_unlock
On Thu, Apr 23, 2015 at 03:07:54PM +0100, Peter Antoine wrote:
This patch fixes a possible kernel crash when drm_unlock (DRM_IOCTL_UNLOCK) is called by a application that has not had a lock created by it. This crash can be caused by any application from all users.
Crashing the application is still a crash... -Chris
-- Chris Wilson, Intel Open Source Technology Centre