On Fri, Apr 23, 2021 at 11:18 AM Jason Wang <jasow...@redhat.com> wrote: > > 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: 969e50b61a285 ("net: Pad short frames to minimum size before sending > from SLiRP/TAP") > Signed-off-by: Jason Wang <jasow...@redhat.com> > --- > include/net/net.h | 5 +++++ > net/slirp.c | 2 +- > net/tap-win32.c | 2 +- > net/tap.c | 2 +- > 4 files changed, 8 insertions(+), 3 deletions(-) >
Reviewed-by: Bin Meng <bmeng...@gmail.com>