OMAP2,3: DSS2: Report -EBUSY when to many registered isr
PATCH 1/1 OMAP2,3: DSS2: Report -EBUSY when to many registered isr
From: Ben Tucker <[email protected]>
This patch fixes a problem with map_dispc_register_isr() where it fails to return -EBUSY if it has no more space for registrations.
--- drivers/video/omap2/dss/dispc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/video/omap2/dss/dispc.c +4 -0
@@ -2579,6 +2579,10 @@ int omap_dispc_register_isr(omap_dispc_isr_t isr, void *arg, u32 mask)break ; } +if (ret) { + goto err; + } +_omap_dispc_set_irqs ();spin_unlock_irqrestore (&dispc.irq_lock, flags);
Signature · 1 line
1.7.3.2
Hi,
Quoted 4 lines · Ben Tucker
From: Ben Tucker <[email protected]>
This patch fixes a problem with
map_dispc_register_isr()where it fails to return-EBUSYif it has no more space for registrations.
Looks correct, but a couple of things:
- Missing signed-off
- Indentation is wrong
- Don't use { } when there's just one line in the if block
Please fix those, or alternatively I can fix the bug myself and add you as reported-by.
Tomi
Quoted 20 lines
---
drivers/video/omap2/dss/dispc.c| 4 ++++1 files changed, 4 insertions(+), 0 deletions(-)drivers/video/omap2/dss/dispc.c +4
-0@@ -2579,6 +2579,10 @@ int omap_dispc_register_isr(omap_dispc_isr_t isr, void *arg, u32 mask)break ; } +if (ret) { + goto err; + } +_omap_dispc_set_irqs ();spin_unlock_irqrestore (&dispc.irq_lock, flags);
Thankyou Tomi. Please go ahead and fix the bug yourself.
Ben
Quoted 49 lines
-----Original Message-----
From: Tomi Valkeinen [mailto:[email protected]]
Sent: 21 February 2011 09:28
To: Ben Tucker
Cc: [email protected]; Ben Tucker
Subject: Re: OMAP2,3: DSS2: Report-EBUSYwhen to many registered isrHi,
Quoted 4 lines · Ben Tucker
From: Ben Tucker <[email protected]>
This patch fixes a problem with
map_dispc_register_isr()where it fails to return-EBUSYif it has no more space for registrations.Looks correct, but a couple of things:
- Missing signed-off
- Indentation is wrong
- Don't use { } when there's just one line in the if blockPlease fix those, or alternatively I can fix the bug myself and add you as reported-by.
Tomi
Review
Quoted 6 lines
---
drivers/video/omap2/dss/dispc.c| 4 ++++1 files changed, 4 insertions(+), 0 deletions(-)(quoted diff) +0
-0
b/drivers/video/omap2/dss/dispc.cdrivers/video/omap2/dss/dispc.c int omap_dispc_register_isr(omap_dispc_isr_t
Quoted 4 lines
index e0e8275..f566177 100644
drivers/video/omap2/dss/dispc.c +0
-0@@ -2579,6 +2579,10 @@ int omap_dispc_register_isr(omap_dispc_isr_tisr, void *arg, u32 mask)
Quoted 10 lines
drivers/video/omap2/dss/dispc.c +4
-0break ; } +if (ret) { + goto err; + } +_omap_dispc_set_irqs ();spin_unlock_irqrestore (&dispc.irq_lock, flags);