[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for 6.0] net: check the existence of peer before trying to pa
From: |
Peter Maydell |
Subject: |
Re: [PATCH for 6.0] net: check the existence of peer before trying to pad |
Date: |
Fri, 23 Apr 2021 14:07:25 +0100 |
On Fri, 23 Apr 2021 at 04:18, Jason Wang <jasowang@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 <jasowang@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