2010-07-16 09:47:29

by Kulikov Vasiliy

[permalink] [raw]
Subject: process_reloc_for_got: no ENOMEM check

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.