xen-netback: avoid allocating variable size array on stack
authorWei Liu <wei.liu2@citrix.com>
Thu, 2 May 2013 00:43:58 +0000 (00:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 May 2013 20:50:08 +0000 (16:50 -0400)
commit59ccb4ebbc35e36a3c143f2d1355deb75c2e628f
tree7c93d18c8162dc66538064676d30f76a1fbc0714
parentac69c26e7accb04ae2cb9ab0872068983a42b3c8
xen-netback: avoid allocating variable size array on stack

Tune xen_netbk_count_requests to not touch working array beyond limit, so that
we can make working array size constant.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c