Skip to contentSkip to conversation

drivers/crypto: dubious error check

PATCH Applied Nicolas Kaiser 3 participants 3 messages Oct 24, 2010 – Oct 25, 2010 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/crypto: dubious error check

Looks like a copy-and-paste problem to me.

---
 drivers/crypto/n2_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/crypto/n2_core.c +1 -1
index 88ee015..7614126 100644
@@ -1832,7 +1832,7 @@ static int __devinit get_irq_props(struct mdesc_handle *mdesc, u64 node,
 		return -ENODEV;
 
 	ino = mdesc_get_property(mdesc, node, "ino", &ino_len);
-	if (!intr)
+	if (!ino)
 		return -ENODEV;
 
 	if (intr_len != ino_len)
Signature · 1 line
1.7.2.2
Applied
#2 lore raw
Quoted 8 lines · David Miller

From: Nicolas Kaiser <[email protected]>
Date: Sun, 24 Oct 2010 15:05:56 +0200

Quoted 3 lines

Looks like a copy-and-paste problem to me.

Applied to crypto-2.6. Thanks!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt