Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1484977
| From | Wei Yongjun <weiyj.lk@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH -next] memory: atmel-ebi: fix return value check in at91_ebi_dev_disable() |
| Date | 2016-09-16 15:10 +0200 |
| Message-ID | <si13X-585-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From: Wei Yongjun <weiyongjun1@huawei.com>
Fix the retrn value check which testing the wrong variable
in at91_ebi_dev_disable().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/memory/atmel-ebi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c
index b5ed3bd..047d6fc 100644
--- a/drivers/memory/atmel-ebi.c
+++ b/drivers/memory/atmel-ebi.c
@@ -657,7 +657,7 @@ static int at91_ebi_dev_disable(struct at91_ebi *ebi, struct device_node *np)
return -ENOMEM;
newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL);
- if (!newprop->name)
+ if (!newprop->value)
return -ENOMEM;
newprop->length = sizeof("disabled");
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH -next] memory: atmel-ebi: fix return value check in at91_ebi_dev_disable() Wei Yongjun <weiyj.lk@gmail.com> - 2016-09-16 15:10 +0200
csiph-web