lkml.org 
[lkml]   [2007]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.6 patch] fix mm/util.c:krealloc()
On Fri, 19 Oct 2007, Adrian Bunk wrote:

> Commit ef8b4520bd9f8294ffce9abd6158085bde5dc902 added one NULL check for
> "p" in krealloc(), but that doesn't seem to be enough since there
> doesn't seem to be any guarantee that memcpy(ret, NULL, 0) works
> (spotted by the Coverity checker).
>
> For making it clearer what happens this patch also removes the
> pointless min().

Acked-by: Chriustoph Lameter <clameter@sgi.com>
-
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: 2007-10-19 19:45    [W:0.033 / U:0.292 seconds]
©2003-2014 Jasper Spaans. Advertise on this site