Re: [PATCH] drivers/mtd/mtdchar.c

David Woodhouse (dwmw2@infradead.org)
Tue, 22 May 2001 01:15:50 +0100


PXWang@stanford.edu said:
> There is a bug in mtdchar.c of not freeing memory on error paths.
> databuf is allocated but not freed if copy_from_user fails. The
> addition I made was to kfree databuf before returning -EFAULT.
> Thanks!

Thankyou. I've now committed the fix to my tree and it'll be in the next
merge with Linus, which should hopefully happen quite soon.

--
dwmw2

- 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/