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

From: David Woodhouse (dwmw2@infradead.org)
Date: Mon May 21 2001 - 19:15:50 EST


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/



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:44 EST