mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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>
This commit is contained in:
parent
6cf3564214
commit
adb094e5e7
1 changed files with 4 additions and 4 deletions
|
@ -1011,11 +1011,11 @@ static void fjes_hw_update_zone_task(struct work_struct *work)
|
|||
set_bit(epidx, &irq_bit);
|
||||
break;
|
||||
}
|
||||
|
||||
hw->ep_shm_info[epidx].es_status =
|
||||
info[epidx].es_status;
|
||||
hw->ep_shm_info[epidx].zone = info[epidx].zone;
|
||||
}
|
||||
|
||||
hw->ep_shm_info[epidx].es_status = info[epidx].es_status;
|
||||
hw->ep_shm_info[epidx].zone = info[epidx].zone;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue