Messages in this thread | | | Date | Tue, 5 Oct 2004 15:21:26 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] add missing checks of __copy_to_user return value in i2o_config.c |
| |
Jesper Juhl <juhl-lkml@dif.dk> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |