Signed-off-by: Mariusz Kozlowski <[email protected]>
drivers/char/drm/i810_dma.c | 37542 -> 37480 (-62 bytes)
drivers/char/drm/i810_dma.o | 150664 -> 149996 (-668 bytes)
drivers/char/drm/i810_dma.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
--- linux-2.6.23-rc3-mm1.orig/drivers/char/drm/i810_dma.c
+++ linux-2.6.23-rc3-mm1/drivers/char/drm/i810_dma.c
@@ -328,7 +328,6 @@ static int i810_dma_initialize(struct dr
drm_i810_init_t * init)
{
struct drm_map_list *r_list;
- memset(dev_priv, 0, sizeof(drm_i810_private_t));
list_for_each_entry(r_list, &dev->maplist, head) {
if (r_list->map &&
@@ -498,9 +497,9 @@ static int i810_dma_init(struct inode *i
if (retcode)
return retcode;
- dev_priv = drm_alloc(sizeof(drm_i810_private_t),
+ dev_priv = drm_zalloc(sizeof(drm_i810_private_t),
DRM_MEM_DRIVER);
- if (dev_priv == NULL)
+ if (!dev_priv)
return -ENOMEM;
retcode = i810_dma_initialize(dev, dev_priv, &init);
break;
@@ -512,9 +511,9 @@ static int i810_dma_init(struct inode *i
sizeof(drm_i810_init_t))) {
return -EFAULT;
}
- dev_priv = drm_alloc(sizeof(drm_i810_private_t),
+ dev_priv = drm_zalloc(sizeof(drm_i810_private_t),
DRM_MEM_DRIVER);
- if (dev_priv == NULL)
+ if (!dev_priv)
return -ENOMEM;
retcode = i810_dma_initialize(dev, dev_priv, &init);
break;
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]