summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorvehemens <vehemens@verizon.net>2007-08-15 11:05:44 -0700
committerEric Anholt <eric@anholt.net>2007-08-15 11:06:49 -0700
commit4cdd871e90cd5fe440d0a4af5d69f1d84e49e742 (patch)
treed3d570ce0bd19dbd578c01f962ec1387a3fc21ba /bsd-core
parent56133e04de40e3004018d069cb229e62ee10e0f4 (diff)
Bug #11989: Fix regression in getstats ioctl (kernel panic).
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drm_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-core/drm_ioctl.c b/bsd-core/drm_ioctl.c
index d6af4284..ce78bb8f 100644
--- a/bsd-core/drm_ioctl.c
+++ b/bsd-core/drm_ioctl.c
@@ -205,7 +205,7 @@ int drm_getstats(drm_device_t *dev, void *data, struct drm_file *file_priv)
drm_stats_t *stats = data;
int i;
- memset(&stats, 0, sizeof(stats));
+ memset(stats, 0, sizeof(drm_stats_t));
DRM_LOCK();