public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Suggestion] kernel/irqdesc.c: not checking whether failure occurs for alloc_desc() in early_irq_init().
@ 2013-05-14 10:45 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-05-14 10:45 UTC (permalink / raw)
  To: Thomas Gleixner, linux-kernel@vger.kernel.org

Hello Maintainers:

For early_irq_init(), it may be failure (can return an error code), and
for alloc_desc(), also may return 'NULL' when '-ENOMEM'.

But it seems the authors are sure that early_irq_init() are always
success, is it correct ? (or early_irq_init() will never be used ?)

I think, it is better to also check alloc_desc() return value in
early_irq_init().

Please help check when you have time.


Thanks.
-- 
Chen Gang

Asianux Corporation

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-14 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 10:45 [Suggestion] kernel/irqdesc.c: not checking whether failure occurs for alloc_desc() in early_irq_init() Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox