Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adb094e5 authored by Taku Izumi's avatar Taku Izumi Committed by David S. Miller
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTaku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6cf35642
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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].es_status =
				info[epidx].es_status;
			hw->ep_shm_info[epidx].zone = info[epidx].zone;

		}
		break;
	}