Re: [PATCH] phonet: Check input from user before allocating

From: David Miller
Date: Mon Apr 02 2012 - 17:40:22 EST


From: "Rémi Denis-Courmont" <remi@xxxxxxxxxx>
Date: Mon, 2 Apr 2012 22:00:40 +0300

> Le lundi 2 avril 2012 23:31:00 Sasha Levin, vous avez écrit :
>> + if (len > USHRT_MAX)
>> + return -E2BIG;
>
> I think EMSGSIZE is specified in that case.

Agreed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/