mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
drivers: hv: Fix missing error code in vmbus_connect()
[ Upstream commit 9de6655cc5
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
019d04f914
commit
eda609d864
1 changed files with 3 additions and 1 deletions
|
@ -229,8 +229,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)
|
||||
|
|
Loading…
Reference in a new issue