[ofa-general] [PATCH] IB/core: return immediate error when registering zero length buffer

Eli Cohen eli at dev.mellanox.co.il
Mon Jul 28 01:09:53 PDT 2008


On Mon, Jul 28, 2008 at 08:34:37AM +0300, Or Gerlitz wrote:
> Eli Cohen wrote:
>> +	if (!size)
>> +		return ERR_PTR(-ENOMEM);
> doesn't EINVAL makes more sense here?
>

Maybe, I'm not sure.



More information about the general mailing list