Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1568247 > unrolled thread

[PATCH 3.12 124/235] mmc: mmc_test: Uninitialized return value

Started byJiri Slaby <jslaby@suse.cz>
First post2017-01-27 12:50 +0100
Last post2017-01-27 12:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.12 124/235] mmc: mmc_test: Uninitialized return value Jiri Slaby <jslaby@suse.cz> - 2017-01-27 12:50 +0100

#1568247 — [PATCH 3.12 124/235] mmc: mmc_test: Uninitialized return value

FromJiri Slaby <jslaby@suse.cz>
Date2017-01-27 12:50 +0100
Subject[PATCH 3.12 124/235] mmc: mmc_test: Uninitialized return value
Message-ID<t4dcv-3zE-53@gated-at.bofh.it>
From: Dan Carpenter <dan.carpenter@oracle.com>

3.12-stable review patch.  If anyone has any objections, please let me know.

===============

commit 16652a936e96f5dae53c3fbd38a570497baadaa8 upstream.

We never set "ret" to RESULT_OK.

Fixes: 9f9c4180f88d ("mmc: mmc_test: add test for non-blocking transfers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
 drivers/mmc/card/mmc_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c
index 0c0fc52d42c5..b2ef5f2b4c53 100644
--- a/drivers/mmc/card/mmc_test.c
+++ b/drivers/mmc/card/mmc_test.c
@@ -795,7 +795,7 @@ static int mmc_test_nonblock_transfer(struct mmc_test_card *test,
 	struct mmc_async_req *cur_areq = &test_areq[0].areq;
 	struct mmc_async_req *other_areq = &test_areq[1].areq;
 	int i;
-	int ret;
+	int ret = RESULT_OK;
 
 	test_areq[0].test = test;
 	test_areq[1].test = test;
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web