mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-03 17:43:32 -10:00
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: 969e50b61a ("net: Pad short frames to minimum size before sending from SLiRP/TAP")
Signed-off-by: Jason Wang <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Stefan Weil <[email protected]>
Message-id: [email protected]
Signed-off-by: Peter Maydell <[email protected]>