Skip to content
Snippets Groups Projects
Commit bc38e31b authored by Jason Wang's avatar Jason Wang Committed by Peter Maydell
Browse files

net: check the existence of peer before trying to pad


There could be case that peer is NULL. This can happen when during
network device hot-add where net device needs to be added first. So
the patch check the existence of peer before trying to do the pad.

Fixes: 969e50b6 ("net: Pad short frames to minimum size before sending from SLiRP/TAP")
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
Message-id: 20210423031803.1479-1-jasowang@redhat.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent b1cffefa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment