hyperv: Add a check for ring_size value
commitfa85a6c29a493e8a574bf62a6349b38b591bf885
authorHaiyang Zhang <haiyangz@microsoft.com>
Wed, 25 Jul 2012 08:08:41 +0000 (25 08:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2012 22:31:30 +0000 (25 15:31 -0700)
tree4022b7c94ff929f0f91d6eb6dffcf3feffa301ba
parent4331debc51ee1ce319f4a389484e0e8e05de2aca
hyperv: Add a check for ring_size value

It prevents ring_size being set to a too small value.

Reported-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c