Re: [2.6 patch] fix mm/util.c:krealloc()

2007-10-19 Thread Christoph Lameter
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). > >

[2.6 patch] fix mm/util.c:krealloc()

2007-10-19 Thread Adrian Bunk
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

[2.6 patch] fix mm/util.c:krealloc()

2007-10-19 Thread Adrian Bunk
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

Re: [2.6 patch] fix mm/util.c:krealloc()

2007-10-19 Thread Christoph Lameter
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