Re: alpha: Checking for a failed kmalloc() in process_reloc_for_got()?

2016-12-04 Thread SF Markus Elfring
>> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/alpha/kernel/module.c?id=e05f574a0bb1f4502a4b2264fdb0ef6419cf3772#n40 >> >> Would it be useful to check the return value from a call of the >> function “kmalloc” also there? > > *drumroll* it'd actually be a proper bugfi

Re: alpha: Checking for a failed kmalloc() in process_reloc_for_got()?

2016-12-03 Thread Jiri Kosina
On Sat, 3 Dec 2016, SF Markus Elfring wrote: > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/alpha/kernel/module.c?id=e05f574a0bb1f4502a4b2264fdb0ef6419cf3772#n40 > > Would it be useful to check the return value from a call of the > function “kmalloc” also there? *dr

alpha: Checking for a failed kmalloc() in process_reloc_for_got()?

2016-12-03 Thread SF Markus Elfring
Hello, Another run of a small script for the semantic patch language (Coccinelle) pointed the implementation of the function “process_reloc_for_got” out for further considerations. https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/alpha/kernel/module.c?id=e05f574a0bb1f4502