RE: [PATCH] virtio_pci: fix a NULL pointer reference in vp_del_vqs

2019-03-08 Thread Gonglei (Arei)
> -Original Message- > From: longpeng > Sent: Saturday, March 09, 2019 3:18 PM > To: m...@redhat.com; jasow...@redhat.com > Cc: virtualizat...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > longpeng ; Gonglei (Arei) > > Subject: [PATCH] virtio

[PATCH] virtio_pci: fix a NULL pointer reference in vp_del_vqs

2019-03-08 Thread Longpeng(Mike)
From: Longpeng If the msix_affinity_masks is alloced failed, then we'll try to free some resources in vp_free_vectors() that may access it directly. We met the following stack in our production: [ 29.296767] BUG: unable to handle kernel NULL pointer dereference at (null) [ 29.311151] IP: