From: Li Zefan Date: Mon, 5 Nov 2007 02:53:09 +0000 (+1000) Subject: drm: DRM: fix memset size error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=246a3d186a10266c9ee362e8d37c3bd851246b84;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm: DRM: fix memset size error The size passing to memset is wrong. Signed-off-by: Li Zefan Signed-off-by: Dave Airlie --- diff --git a/drivers/char/drm/drm_ioctl.c b/drivers/char/drm/drm_ioctl.c index d9be14624526..3cbebf868e68 100644 --- a/drivers/char/drm/drm_ioctl.c +++ b/drivers/char/drm/drm_ioctl.c @@ -272,7 +272,7 @@ int drm_getstats(struct drm_device *dev, void *data, struct drm_stats *stats = data; int i; - memset(stats, 0, sizeof(stats)); + memset(stats, 0, sizeof(*stats)); mutex_lock(&dev->struct_mutex);