Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]> drivers/char/drm/drm_auth.c | 5835 -> 5802 (-33 bytes) drivers/char/drm/drm_auth.o | 104968 -> 104860 (-108 bytes)
drivers/char/drm/drm_auth.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- linux-2.6.23-rc3-mm1.orig/drivers/char/drm/drm_auth.c +++ linux-2.6.23-rc3-mm1/drivers/char/drm/drm_auth.c @@ -78,12 +78,11 @@ static int drm_add_magic(struct drm_devi DRM_DEBUG("%d\n", magic); - entry = drm_alloc(sizeof(*entry), DRM_MEM_MAGIC); + entry = drm_zalloc(sizeof(*entry), DRM_MEM_MAGIC); if (!entry) return -ENOMEM; - memset(entry, 0, sizeof(*entry)); - entry->priv = priv; + entry->priv = priv; entry->hash_item.key = (unsigned long)magic; mutex_lock(&dev->struct_mutex); drm_ht_insert_item(&dev->magiclist, &entry->hash_item); -- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel