qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] bc38e3: net: check the existence of peer befo


From: jasowang
Subject: [Qemu-commits] [qemu/qemu] bc38e3: net: check the existence of peer before trying to pad
Date: Fri, 23 Apr 2021 03:12:16 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: bc38e31b4e0366f3a70c0939abde4c3dd6e0fa30
      
https://github.com/qemu/qemu/commit/bc38e31b4e0366f3a70c0939abde4c3dd6e0fa30
  Author: Jason Wang <jasowang@redhat.com>
  Date:   2021-04-23 (Fri, 23 Apr 2021)

  Changed paths:
    M include/net/net.h
    M net/slirp.c
    M net/tap-win32.c
    M net/tap.c

  Log Message:
  -----------
  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: 969e50b61a285 ("net: Pad short frames to minimum size before sending 
from SLiRP/TAP")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 20210423031803.1479-1-jasowang@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]