From: btucker@mpcdata.com
To: linux-omap@vger.kernel.org
Cc: Ben Tucker <btucker@mpc-data.co.uk>
Subject: [PATCH] OMAP2,3: DSS2: Report -EBUSY when to many registered isr
Date: Wed, 19 Jan 2011 14:42:34 +0000 (UTC)
Date: Fri, 21 Jan 2011 04:53:30 +0000 [thread overview]
Message-ID: <1295585610-24179-1-git-send-email-btucker@mpcdata.com> (raw)
From: Ben Tucker <btucker@mpc-data.co.uk>
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(-)
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index e0e8275..f566177 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -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);
--
1.7.3.2
next reply other threads:[~2011-01-19 14:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-19 14:42 btucker [this message]
2011-02-21 9:28 ` OMAP2,3: DSS2: Report -EBUSY when to many registered isr Tomi Valkeinen
2011-03-04 9:32 ` Ben Tucker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1295585610-24179-1-git-send-email-btucker@mpcdata.com \
--to=btucker@mpcdata.com \
--cc=btucker@mpc-data.co.uk \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).