lkml.org 
[lkml]   [2001]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] vmalloc NULL Check Bug Fix
On Sun, May 13, 2001 at 01:07:03AM -0700, Philip Wang wrote:
> Hello!
>
> I'm Philip, from Professor Dawson Engler's Meta-Compilation Group at
> Stanford University.
>
> This simple and obvious bug fix makes sure that vmalloc() does not return
> NULL. My addition of returning -1 is consistent with how the rest of the
> code deals with allocation failures.

The error handling paths in ftl.c still look awfully incomplete -- they don't
free any resources previously allocated when a memory allocation failure
happens.

-Andi

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

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.042 / U:0.244 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site