mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [patch 2/6] fault-injection capability for kmalloc. [bug fix]
@ 2006-09-06  5:50 Don Mullis
  0 siblings, 0 replies; only message in thread
From: Don Mullis @ 2006-09-06  5:50 UTC (permalink / raw)
  To: lkml

Fix compilation when CONFIG_FAILSLAB=n .

Signed-off-by: Don Mullis <dwm@meer.net>

---
 mm/slab.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6.17/mm/slab.c
===================================================================
--- linux-2.6.17.orig/mm/slab.c
+++ linux-2.6.17/mm/slab.c
@@ -2985,9 +2985,11 @@ static inline void *____cache_alloc(stru
 	void *objp;
 	struct array_cache *ac;
 
+#ifdef CONFIG_FAILSLAB
 	if (!(flags & __GFP_NOFAIL) && cachep != &cache_cache &&
 	    should_fail(failslab, obj_size(cachep)))
 		return NULL;
+#endif
 
 #ifdef CONFIG_NUMA
 	if (unlikely(current->flags & (PF_SPREAD_SLAB | PF_MEMPOLICY))) {



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-06  6:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06  5:50 [patch 2/6] fault-injection capability for kmalloc. [bug fix] Don Mullis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®