Commit 6a74af7
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: 0bb05e6 ("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>1 parent 2adbfca commit 6a74af7
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5279 | 5279 | | |
5280 | 5280 | | |
5281 | 5281 | | |
5282 | | - | |
| 5282 | + | |
5283 | 5283 | | |
5284 | 5284 | | |
5285 | | - | |
| 5285 | + | |
5286 | 5286 | | |
5287 | 5287 | | |
5288 | 5288 | | |
| |||
5397 | 5397 | | |
5398 | 5398 | | |
5399 | 5399 | | |
5400 | | - | |
| 5400 | + | |
5401 | 5401 | | |
5402 | 5402 | | |
5403 | 5403 | | |
| |||
0 commit comments