Skip to contentSkip to conversation

mm/slab.c: linux 2.6.1 fix 2 unguarded kmalloc and a PAGE_SHIFT

DISCUSSION Manfred Spraul 1 participant 1 message Jan 25, 2004

lore
Share & tools
lore
#0 lore raw

Hi Walter,

Quoted 4 lines

this fixes catches 2 unguarded kmallocs() and changes a statement so that PAGE_SHIFT \

Quoted 1 line

20 causes a warning. At least sparc64 is prepared for a PAGE_SHIFT >20.

Why should a page shift above 20 generate a warning?

The two unguarded kmallocs are obivously wrong, but I'd prefer to guard them with __GFP_NOFAIL.

--
Manfred