* [PATCH] reiserfs missing kmalloc failure check
@ 2006-01-16 0:48 Diego Calleja
0 siblings, 0 replies; only message in thread
From: Diego Calleja @ 2006-01-16 0:48 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
According to http://bugzilla.kernel.org/show_bug.cgi?id=5778
fs/reiserfs/file.c is missing this check?
Signed-off-by: Diego Calleja <diegocg@gmail.com>
Index: test/fs/reiserfs/file.c
===================================================================
--- test.orig/fs/reiserfs/file.c 2006-01-13 02:40:50.000000000 +0100
+++ test/fs/reiserfs/file.c 2006-01-16 01:41:36.000000000 +0100
@@ -192,6 +192,8 @@
allocated_blocks = kmalloc((blocks_to_allocate + will_prealloc) *
sizeof(b_blocknr_t), GFP_NOFS);
+ if (!allocated_blocks)
+ return -ENOMEM;
/* First we compose a key to point at the writing position, we want to do
that outside of any locking region. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-16 0:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-16 0:48 [PATCH] reiserfs missing kmalloc failure check Diego Calleja
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome