[PATCH] VMCI: Guard against overflow in queue pair allocation

2015-03-02 Thread jhansen
From: Jorgen Hansen The current maximum size of a queue in a queue pair is 128 MB. If we increase that in the future, the queue pair allocation routines may run into overflow issues. This change adds additional checks to guard against this. Acked-by: Andy King Reported-by: Dan Carpenter

[PATCH] VMCI: Guard against overflow in queue pair allocation

2015-03-02 Thread jhansen
From: Jorgen Hansen jhan...@vmware.com The current maximum size of a queue in a queue pair is 128 MB. If we increase that in the future, the queue pair allocation routines may run into overflow issues. This change adds additional checks to guard against this. Acked-by: Andy King