[Intel-gfx] [PATCH] v2: Also add a DRIVER_* check like for all other maps functions to really short-circuit the code. And give drm_legacy_rmmap used by the dev unregister code the same treatment.

2015-11-23 Thread Jani Nikula
Accidental patch? On Mon, 23 Nov 2015, Daniel Vetter wrote: > --- > drivers/gpu/drm/drm_bufs.c | 14 ++ > include/drm/drm_legacy.h | 2 +- > 2 files changed, 11 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c > index de18b8b7

[Intel-gfx] [PATCH] v2: Also add a DRIVER_* check like for all other maps functions to really short-circuit the code. And give drm_legacy_rmmap used by the dev unregister code the same treatment.

2015-11-23 Thread Daniel Vetter
On Mon, Nov 23, 2015 at 12:15:18PM +0200, Jani Nikula wrote: > > Accidental patch? Yup, dunno how that one ended up in there ... -Daniel > > On Mon, 23 Nov 2015, Daniel Vetter wrote: > > --- > > drivers/gpu/drm/drm_bufs.c | 14 ++ > > include/drm/drm_legacy.h | 2 +- > > 2 file

[PATCH] v2: Also add a DRIVER_* check like for all other maps functions to really short-circuit the code. And give drm_legacy_rmmap used by the dev unregister code the same treatment.

2015-11-23 Thread Daniel Vetter
--- drivers/gpu/drm/drm_bufs.c | 14 ++ include/drm/drm_legacy.h | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c index de18b8b78a26..5a51633da033 100644 --- a/drivers/gpu/drm/drm_bufs.c +++ b/drivers/gpu