commit | 642c7cbcaf2ffc1e27f67eda3dc47347ac5aff37 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bart.vanassche@sandisk.com> | Tue Jan 10 11:15:48 2017 -0800 |
committer | Doug Ledford <dledford@redhat.com> | Tue Jan 10 16:52:47 2017 -0500 |
tree | ba51621bc1e85f16c12cb0ce65f68dbb72293680 | |
parent | 43553b47c3124e7f4a9f115cff9db513b35a5e0a [diff] |
IB/rxe: Add a runtime check in alloc_index() Since index values equal to or above 'range' can trigger memory corruption, complain if index >= range. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Andrew Boyer <andrew.boyer@dell.com> Cc: Moni Shoua <monis@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>