]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: xen-netfront: fix array initialization bug
authorVincenzo Maffione <v.maffione@gmail.com>
Sat, 12 Apr 2014 09:55:40 +0000 (11:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Apr 2014 20:49:06 +0000 (16:49 -0400)
commit7064df6d0397cfbd45d14f37a1a0359580623e9b
tree0c67703de5b8dde209e5bee3a54cbe76ca30c1bd
parent09ac0ef3ac85f5b832d185a4bb0acb4afe132355
drivers: net: xen-netfront: fix array initialization bug

This patch fixes the initialization of an array used in the TX
datapath that was mistakenly initialized together with the
RX datapath arrays. An out of range array access could happen
when RX and TX rings had different sizes.

Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c