diff options
| author | Jubin John <[email protected]> | 2016-02-26 13:33:08 -0800 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2016-03-10 20:45:45 -0500 |
| commit | ade302405f333af834c5a272f905000810adf474 (patch) | |
| tree | 55eca17fe79c3f190bc9a13dce9e5670996c8d81 /tools/perf/scripts/python/bin | |
| parent | 582e05c3deeaf56ed04df62ad9f1fa6e88199bd9 (diff) | |
IB/rdmavt: Check lkey_table_size value before use
The lkey_table_size driver specific parameter value is used before its
value is sanity checked and restricted to RVT_MAX_LKEY_TABLE_BITS.
This causes a vmalloc allocation failure for large values. Fix this
by moving the value check before the first usage of the value.
Reviewed-by: Dennis Dalessandro <[email protected]>
Reviewed-by: Mike Marciniszyn <[email protected]>
Signed-off-by: Jubin John <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions