commit | 142ead3dc70411bd5977e8c47a6d8bf22287b3f8 | [log] [tgz] |
---|---|---|
author | zhangyue <zhangyue1@kylinos.cn> | Thu Nov 18 13:46:32 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Dec 08 08:45:05 2021 +0100 |
tree | e6cdca2f7b129e72c5dafcb27fdfbcb9182c4fc1 | |
parent | 948968f8747650447c8f21c9fdba0e1973be040b [diff] |
net: tulip: de4x5: fix the problem that the array 'lp->phy[8]' may be out of bound [ Upstream commit 61217be886b5f7402843677e4be7e7e83de9cb41 ] In line 5001, if all id in the array 'lp->phy[8]' is not 0, when the 'for' end, the 'k' is 8. At this time, the array 'lp->phy[8]' may be out of bound. Signed-off-by: zhangyue <zhangyue1@kylinos.cn> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>