commit | 1c3ce90d0acb0c661910dd84f416b3053e9710af | [log] [tgz] |
---|---|---|
author | Eli Cohen <eli@dev.mellanox.co.il> | Sun Sep 14 16:47:53 2014 +0300 |
committer | Roland Dreier <roland@purestorage.com> | Thu Oct 09 00:08:40 2014 -0700 |
tree | f9023638d399fa1f01e52c7d68f537ff50c8bcac | |
parent | 377b513485fd885dea1083a9a5430df65b35e048 [diff] |
IB/mlx5: Fix possible array overflow The check to verify that userspace does not provide an invalid index to the micro UAR was placed too late. Fix this by moving the check before using the index. Reported by: Shachar Raindel <raindel@mellanox.com> Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>