Bug #11989: Fix regression in getstats ioctl (kernel panic).
parent
56133e04de
commit
4cdd871e90
|
@ -205,7 +205,7 @@ int drm_getstats(drm_device_t *dev, void *data, struct drm_file *file_priv)
|
||||||
drm_stats_t *stats = data;
|
drm_stats_t *stats = data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
memset(&stats, 0, sizeof(stats));
|
memset(stats, 0, sizeof(drm_stats_t));
|
||||||
|
|
||||||
DRM_LOCK();
|
DRM_LOCK();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue