summaryrefslogtreecommitdiffstats
path: root/fs/udf/udfdecl.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-15 02:00:01 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-15 03:45:41 +0100
commitbe21f0ab0d8f10c90265066603a8d95b6037a6fa (patch)
tree5aeb6f2a2e62e36a8410ef725ac76fa69ab6a182 /fs/udf/udfdecl.h
parentsunrpc/xprtrdma/transport.c: fix use-after-free (diff)
downloadlinux-be21f0ab0d8f10c90265066603a8d95b6037a6fa.tar.xz
linux-be21f0ab0d8f10c90265066603a8d95b6037a6fa.zip
fix mm/util.c:krealloc()
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(). Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/udf/udfdecl.h')
0 files changed, 0 insertions, 0 deletions