Re: [PATCH] add missing checks of __copy_to_user return value ini2o_config.c

From: Andrew Morton
Date: Tue Oct 05 2004 - 17:22:55 EST


Jesper Juhl <juhl-lkml@xxxxxx> wrote:
>
> - __copy_to_user(kxfer.buf, buffer.virt, fragsize);
> + if (__copy_to_user(kxfer.buf, buffer.virt, fragsize))
> + return -EFAULT;
> +
> i2o_dma_free(&c->pdev->dev, &buffer);
>

Obvious leak.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/