lkml.org 
[lkml]   [2021]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][next] net: hns3: Fix return of uninitialized variable ret
From
Date
Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Fri, 21 May 2021 11:01:46 +0100 you wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> In the unlikely event that rule_cnt is zero the variable ret is
> not assigned a value and function hclge_dbg_dump_fd_tcam can end
> up returning an unitialized value in ret. Fix this by explicitly
> setting ret to zero before the for-loop.
>
> [...]

Here is the summary with links:
- [next] net: hns3: Fix return of uninitialized variable ret
https://git.kernel.org/netdev/net-next/c/030c8198d744

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


\
 
 \ /
  Last update: 2021-05-21 23:00    [W:0.060 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site