[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200610301046.03714.eike-kernel@sf-tec.de>
Date: Mon, 30 Oct 2006 10:45:57 +0100
From: Rolf Eike Beer <eike-kernel@...tec.de>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: Andrew Morton <akpm@...l.org>, linux-kernel@...r.kernel.org,
Eric Sesterhenn <snakebyte@....de>
Subject: Re: [PATCH] drivers/video/*: use kmemdup()
Alexey Dobriyan wrote:
> From: Eric Sesterhenn <snakebyte@....de>
>
> Signed-off-by: Eric Sesterhenn <snakebyte@....de>
> Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
> ---
>
> drivers/video/aty/radeon_monitor.c | 3 +--
> drivers/video/i810/i810-i2c.c | 4 +---
> drivers/video/intelfb/intelfbdrv.c | 3 +--
> drivers/video/nvidia/nv_i2c.c | 7 ++-----
> drivers/video/nvidia/nv_of.c | 3 +--
> drivers/video/savage/savagefb-i2c.c | 7 ++-----
> 6 files changed, 8 insertions(+), 19 deletions(-)
>
> --- a/drivers/video/aty/radeon_monitor.c
> +++ b/drivers/video/aty/radeon_monitor.c
> @@ -104,10 +104,9 @@ static int __devinit radeon_parse_montyp
> if (pedid == NULL)
> return mt;
>
> - tmp = (u8 *)kmalloc(EDID_LENGTH, GFP_KERNEL);
> + tmp = (u8 *)kmemdup(pedid, EDID_LENGTH, GFP_KERNEL);
No cast here.
Eike
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists