projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450605c
)
drivers: hv: Fix missing error code in vmbus_connect()
author
Jiapeng Chong
<jiapeng.chong@linux.alibaba.com>
Tue, 25 May 2021 10:58:41 +0000
(18:58 +0800)
committer
Wei Liu
<wei.liu@kernel.org>
Wed, 2 Jun 2021 15:16:36 +0000
(15:16 +0000)
Eliminate the follow smatch warning:
drivers/hv/connection.c:236 vmbus_connect() warn: missing error code
'ret'.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link:
https://lore.kernel.org/r/1621940321-72353-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/connection.c
patch
|
blob
|
history
diff --git
a/drivers/hv/connection.c
b/drivers/hv/connection.c
index
311cd00
..
5e479d5
100644
(file)
--- a/
drivers/hv/connection.c
+++ b/
drivers/hv/connection.c
@@
-232,8
+232,10
@@
int vmbus_connect(void)
*/
for (i = 0; ; i++) {
- if (i == ARRAY_SIZE(vmbus_versions))
+ if (i == ARRAY_SIZE(vmbus_versions)) {
+ ret = -EDOM;
goto cleanup;
+ }
version = vmbus_versions[i];
if (version > max_version)