On Fri, 23 Apr 2021 at 04:18, 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(-)
Applied to master for 6.0 rc5; thanks. -- PMM