Skip to contentSkip to conversation

Patch "genirq: devres: Fix testing return value of request_any_context_irq()" has been added to the 3.14-stable tree

PATCH [email protected] 1 participant 1 message Jul 17, 2015

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

genirq: devres: Fix testing return value of request_any_context_irq()

to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
genirq-devres-fix-testing-return-value-of-request_any_context_irq.patch
and it can be found in the queue-3.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 63781394c540dd9e666a6b21d70b64dd52bce76e Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
Date: Mon, 11 May 2015 17:02:58 +0800
Subject: genirq: devres: Fix testing return value of request_any_context_irq()

From: Axel Lin <[email protected]>

commit 63781394c540dd9e666a6b21d70b64dd52bce76e upstream.

request_any_context_irq() returns a negative value on failure. It returns either IRQC_IS_HARDIRQ or IRQC_IS_NESTED on success. So fix testing return value of request_any_context_irq().

Also fixup the return value of devm_request_any_context_irq() to make it consistent with request_any_context_irq().

---
 kernel/irq/devres.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/irq/devres.c +2 -2
@@ -104,7 +104,7 @@ int devm_request_any_context_irq(struct
 		return -ENOMEM;
 
 	rc = request_any_context_irq(irq, handler, irqflags, devname, dev_id);
-	if (rc) {
+	if (rc < 0) {
 		devres_free(dr);
 		return rc;
 	}
@@ -113,7 +113,7 @@ int devm_request_any_context_irq(struct
 	dr->dev_id = dev_id;
 	devres_add(dev, dr);
 
-	return 0;
+	return rc;
 }
 EXPORT_SYMBOL(devm_request_any_context_irq);
 

Patches currently in stable-queue which might be from [email protected] are

queue-3.14/genirq-devres-fix-testing-return-value-of-request_any_context_irq.patch