[PATCH for 4.9 29/59] IB/rxe: Add a runtime check in alloc_index()

2017-09-14 Thread Levin, Alexander (Sasha Levin)
From: Bart Van Assche [ Upstream commit 642c7cbcaf2ffc1e27f67eda3dc47347ac5aff37 ] Since index values equal to or above 'range' can trigger memory corruption, complain if index >= range. Signed-off-by: Bart Van Assche Reviewed-by: Andrew

[PATCH for 4.9 29/59] IB/rxe: Add a runtime check in alloc_index()

2017-09-14 Thread Levin, Alexander (Sasha Levin)
From: Bart Van Assche [ Upstream commit 642c7cbcaf2ffc1e27f67eda3dc47347ac5aff37 ] Since index values equal to or above 'range' can trigger memory corruption, complain if index >= range. Signed-off-by: Bart Van Assche Reviewed-by: Andrew Boyer Cc: Moni Shoua Signed-off-by: Doug Ledford