Re: [PATCH v12 net-next 1/1] hv_sock: introduce Hyper-V Sockets

From: David Miller
Date: Tue Jun 28 2016 - 09:45:44 EST


From: Dexuan Cui <decui@xxxxxxxxxxxxx>
Date: Tue, 28 Jun 2016 09:59:21 +0000

> The idea here is: IMO the syscalls sys_read()/write() shoudn't return
> -ENOMEM, so I have to make sure the buffer allocation succeeds?

You have to fail if resources cannot be allocated.