Skip to contentSkip to conversation

process_reloc_for_got: no ENOMEM check

DISCUSSION Kulikov Vasiliy 1 participant 1 message Jul 16, 2010 Kernel janitors

lore
Share & tools
lore
#0 lore raw

Hi,

I've found in ./arch/alpha/kernel/module.c in process_reloc_for_got() such code:

  g = kmalloc (sizeof (*g), GFP_KERNEL);
  g->next = chains[r_sym].next;
  g->r_addend = r_addend;
  g->got_offset = *poffset;

Here we use 'g' without checking it for zero. I don't know what this function does so I cannot write a patch myself.

Thanks.