fjes: fix off-by-one error at fjes_hw_update_zone_task()
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Thu, 17 Sep 2015 14:21:21 +0000 (23:21 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 05:34:09 +0000 (22:34 -0700)
commitadb094e5e7285385770eb7a7c122bfc663c5e174
tree770e0bbdda45f07c81edcc5bebf284ab903db0d4
parent6cf35642147103195f126d13bdc1d4c32c7c6666
fjes: fix off-by-one error at fjes_hw_update_zone_task()

Dan Carpenter reported off-by-one error of fjes at
http://www.mail-archive.com/netdev@vger.kernel.org/msg77520.html

Actually this is a bug.
ep_shm_info[epidx].{es_status, zone} should be update
inside for loop.

This patch fixes this bug.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_hw.c