On Thu, Feb 07, 2019 at 02:13:18PM +0100, Paolo Abeni wrote: > In the unlikely event that the kmalloc call in vmci_transport_socket_init() > fails, we end-up calling vmci_transport_destruct() with a NULL vmci_trans() > and oopsing. > > This change addresses the above explicitly checking for zero vmci_trans() > at destruction time. > > Reported-by: Xiumei Mu <x...@redhat.com> > Fixes: d021c344051a ("VSOCK: Introduce VM Sockets") > Signed-off-by: Paolo Abeni <pab...@redhat.com> > --- > net/vmw_vsock/vmci_transport.c | 4 ++++ > 1 file changed, 4 insertions(+)
Reviewed-by: Stefano Garzarella <sgarz...@redhat.com> Thanks, Stefano