[PATCH] staging: comedi: Return error if memory allocation fails

Dan Carpenter dan.carpenter at oracle.com
Mon Apr 27 12:49:41 UTC 2015


On Mon, Apr 27, 2015 at 12:44:51PM +0000, Gujulan Elango, Hari Prasath (H.) wrote:
> Should return ENOMEM if memory allocation occurs.There is a wrong code
> jump here and this patch addresses this issue.
> 

What?  No, the original code is fine and this patch introduces a memory
leak.

regards,
dan carpenter



More information about the devel mailing list