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


Groups > linux.kernel > #1645350

[PATCH] uwb: i1480: add missing goto

From "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Newsgroups linux.kernel
Subject [PATCH] uwb: i1480: add missing goto
Date 2017-05-19 10:30 +0200
Message-ID <tILsm-7S6-35@gated-at.bofh.it> (permalink)
References <tILiH-7O7-57@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add missing goto.

Addresses-Coverity-ID: 1226913
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
 drivers/uwb/i1480/dfu/phy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/uwb/i1480/dfu/phy.c b/drivers/uwb/i1480/dfu/phy.c
index 3b1a87d..1ac8526 100644
--- a/drivers/uwb/i1480/dfu/phy.c
+++ b/drivers/uwb/i1480/dfu/phy.c
@@ -126,6 +126,7 @@ int i1480_mpi_read(struct i1480 *i1480, u8 *data, u16 srcaddr, size_t size)
 		dev_err(i1480->dev, "MPI-READ: command execution failed: %d\n",
 			reply->bResultCode);
 		result = -EIO;
+		goto out;
 	}
 	for (cnt = 0; cnt < size; cnt++) {
 		if (reply->data[cnt].page != (srcaddr + cnt) >> 8)
-- 
2.5.0

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[uwb-i1480] question about value overwrite "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-19 01:10 +0200
  Re: [uwb-i1480] question about value overwrite Greg KH <gregkh@linuxfoundation.org> - 2017-05-19 07:40 +0200
    Re: [uwb-i1480] question about value overwrite "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-19 10:20 +0200
      [PATCH] uwb: i1480: add missing goto "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-19 10:30 +0200

csiph-web