Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1535624

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

From SF Markus Elfring <elfring@users.sourceforge.net>
Newsgroups linux.kernel
Subject Re: alpha: Checking for a failed kmalloc() in process_reloc_for_got()?
Date 2016-12-04 11:30 +0100
Message-ID <sKCds-5Vw-5@gated-at.bofh.it> (permalink)
References <sKiy5-1Pk-3@gated-at.bofh.it> <sKsH7-8s6-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

alpha: Checking for a failed kmalloc() in process_reloc_for_got()? SF Markus Elfring <elfring@users.sourceforge.net> - 2016-12-03 14:30 +0100
  Re: alpha: Checking for a failed kmalloc() in  process_reloc_for_got()? Jiri Kosina <jikos@kernel.org> - 2016-12-04 01:20 +0100
    Re: alpha: Checking for a failed kmalloc() in  process_reloc_for_got()? SF Markus Elfring <elfring@users.sourceforge.net> - 2016-12-04 11:30 +0100

csiph-web