All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ARM: davinci: Check for NULL return from irq_alloc_generic_chip
@ 2011-07-12 22:31 Todd Poynor
  2011-07-13 10:46 ` Sergei Shtylyov
  2011-07-14  5:20 ` Nori, Sekhar
  0 siblings, 2 replies; 3+ messages in thread
From: Todd Poynor @ 2011-07-12 22:31 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Todd Poynor <toddpoynor@google.com>
---
 arch/arm/mach-davinci/irq.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c
index bfe68ec..ab7f688 100644
--- a/arch/arm/mach-davinci/irq.c
+++ b/arch/arm/mach-davinci/irq.c
@@ -52,6 +52,13 @@ davinci_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num)
 	struct irq_chip_type *ct;
 
 	gc = irq_alloc_generic_chip("AINTC", 1, irq_start, base, handle_edge_irq);
+
+	if (!gc) {
+		pr_err("%s: irq_alloc_generic_chip for IRQ %u failed\n",
+		       __func__, irq_start);
+		return;
+	}
+
 	ct = gc->chip_types;
 	ct->chip.irq_ack = irq_gc_ack;
 	ct->chip.irq_mask = irq_gc_mask_clr_bit;
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 1/4] ARM: davinci: Check for NULL return from irq_alloc_generic_chip
  2011-07-12 22:31 [PATCH 1/4] ARM: davinci: Check for NULL return from irq_alloc_generic_chip Todd Poynor
@ 2011-07-13 10:46 ` Sergei Shtylyov
  2011-07-14  5:20 ` Nori, Sekhar
  1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2011-07-13 10:46 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 13-07-2011 2:31, Todd Poynor wrote:

> Signed-off-by: Todd Poynor<toddpoynor@google.com>
> ---
>   arch/arm/mach-davinci/irq.c |    7 +++++++
>   1 files changed, 7 insertions(+), 0 deletions(-)

> diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c
> index bfe68ec..ab7f688 100644
> --- a/arch/arm/mach-davinci/irq.c
> +++ b/arch/arm/mach-davinci/irq.c
> @@ -52,6 +52,13 @@ davinci_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num)
>   	struct irq_chip_type *ct;
>
>   	gc = irq_alloc_generic_chip("AINTC", 1, irq_start, base, handle_edge_irq);
> +

    Remove this empty line please.

> +	if (!gc) {
> +		pr_err("%s: irq_alloc_generic_chip for IRQ %u failed\n",
> +		       __func__, irq_start);
> +		return;
> +	}
> +
>   	ct = gc->chip_types;
>   	ct->chip.irq_ack = irq_gc_ack;
>   	ct->chip.irq_mask = irq_gc_mask_clr_bit;

WBR, Sergei

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/4] ARM: davinci: Check for NULL return from irq_alloc_generic_chip
  2011-07-12 22:31 [PATCH 1/4] ARM: davinci: Check for NULL return from irq_alloc_generic_chip Todd Poynor
  2011-07-13 10:46 ` Sergei Shtylyov
@ 2011-07-14  5:20 ` Nori, Sekhar
  1 sibling, 0 replies; 3+ messages in thread
From: Nori, Sekhar @ 2011-07-14  5:20 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Todd,

On Wed, Jul 13, 2011 at 04:01:50, Todd Poynor wrote:
> Signed-off-by: Todd Poynor <toddpoynor@google.com>

Can you please include some patch description
(even if it turns out to be a restatement of
patch headline)?

Also, in general, including some background on how
you discovered the issue and how it affected you
can help determine the priority of the fix.

Thanks,
Sekhar

> ---
>  arch/arm/mach-davinci/irq.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c
> index bfe68ec..ab7f688 100644
> --- a/arch/arm/mach-davinci/irq.c
> +++ b/arch/arm/mach-davinci/irq.c
> @@ -52,6 +52,13 @@ davinci_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num)
>  	struct irq_chip_type *ct;
>  
>  	gc = irq_alloc_generic_chip("AINTC", 1, irq_start, base, handle_edge_irq);
> +
> +	if (!gc) {
> +		pr_err("%s: irq_alloc_generic_chip for IRQ %u failed\n",
> +		       __func__, irq_start);
> +		return;
> +	}
> +
>  	ct = gc->chip_types;
>  	ct->chip.irq_ack = irq_gc_ack;
>  	ct->chip.irq_mask = irq_gc_mask_clr_bit;
> -- 
> 1.7.3.1
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-14  5:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-12 22:31 [PATCH 1/4] ARM: davinci: Check for NULL return from irq_alloc_generic_chip Todd Poynor
2011-07-13 10:46 ` Sergei Shtylyov
2011-07-14  5:20 ` Nori, Sekhar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.