Explorar o código

drm: fix return value in auth function

This just fixes up the return value in the drm_auth:remove_magic

Signed-off-by: Dave Airlie <airlied@linux.ie>
Dave Airlie %!s(int64=19) %!d(string=hai) anos
pai
achega
572225bedf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/char/drm/drm_auth.c

+ 1 - 1
drivers/char/drm/drm_auth.c

@@ -121,7 +121,7 @@ static int drm_remove_magic(drm_device_t * dev, drm_magic_t magic)
 
 	drm_free(pt, sizeof(*pt), DRM_MEM_MAGIC);
 
-	return -EINVAL;
+	return 0;
 }
 
 /**