patch-2.4.21 linux-2.4.21/drivers/char/drm/drm_auth.h

Next file: linux-2.4.21/drivers/char/drm/drm_ioctl.h
Previous file: linux-2.4.21/drivers/char/drm/drm_agpsupport.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/char/drm/drm_auth.h linux-2.4.21/drivers/char/drm/drm_auth.h
@@ -63,6 +63,7 @@
 	hash	     = DRM(hash_magic)(magic);
 	entry	     = DRM(alloc)(sizeof(*entry), DRM_MEM_MAGIC);
 	if (!entry) return -ENOMEM;
+	memset(entry, 0, sizeof(*entry));
 	entry->magic = magic;
 	entry->priv  = priv;
 	entry->next  = NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)