Commit fab94bf
net: stmmac: avoid shadowing global buf_sz
[ Upstream commit 876cfb2 ]
stmmac_rx() declares a local variable named "buf_sz" but there is also
a global variable for a module parameter which is called the same. To
avoid confusion, rename the local variable.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Furong Xu <0x1207@gmail.com>
Link: https://patch.msgid.link/E1tpswi-005U6C-Py@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 0bb05e6adfa9 ("net: stmmac: Prevent NULL deref when RX memory exhausted")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 6a74af77eba57ddad6cdd43938adb0928e13ec2c)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent a7b33b4 commit fab94bf
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5298 | 5298 | | |
5299 | 5299 | | |
5300 | 5300 | | |
5301 | | - | |
| 5301 | + | |
5302 | 5302 | | |
5303 | 5303 | | |
5304 | | - | |
| 5304 | + | |
5305 | 5305 | | |
5306 | 5306 | | |
5307 | 5307 | | |
| |||
5414 | 5414 | | |
5415 | 5415 | | |
5416 | 5416 | | |
5417 | | - | |
| 5417 | + | |
5418 | 5418 | | |
5419 | 5419 | | |
5420 | 5420 | | |
| |||
0 commit comments