Re: [PATCH net] vsock: cope with memory allocation failure at socket creation time

2019-02-08 Thread David Miller
From: Paolo Abeni Date: Thu, 7 Feb 2019 14:13:18 +0100 > 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

RE: [PATCH net] vsock: cope with memory allocation failure at socket creation time

2019-02-07 Thread Jorgen S. Hansen
> 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 M

Re: [PATCH net] vsock: cope with memory allocation failure at socket creation time

2019-02-07 Thread Stefano Garzarella
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 v