diff options
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 0f24c2dcd517..f7985c303cb0 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -117,7 +117,7 @@ static void drm_master_destroy(struct kref *kref) | |||
117 | dev->driver->master_destroy(dev, master); | 117 | dev->driver->master_destroy(dev, master); |
118 | 118 | ||
119 | if (master->unique) { | 119 | if (master->unique) { |
120 | drm_free(master->unique, strlen(master->unique) + 1, DRM_MEM_DRIVER); | 120 | drm_free(master->unique, master->unique_size, DRM_MEM_DRIVER); |
121 | master->unique = NULL; | 121 | master->unique = NULL; |
122 | master->unique_len = 0; | 122 | master->unique_len = 0; |
123 | } | 123 | } |