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

From: SF Markus Elfring
Date: Sun Dec 04 2016 - 05:21:33 EST


>> 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 bugfix.

Which kind of exception handling can be added here when the function
âprocess_reloc_for_gotâ has got the return type âvoidâ so far?

Will it be needed to handle such a software failure at more source code places
by a special error code?

Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html