From: Eli Cohen Date: Sun, 14 Sep 2014 13:47:53 +0000 (+0300) Subject: IB/mlx5: Fix possible array overflow X-Git-Tag: omap-for-v3.19/prcm-cleanup~33^2^4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c3ce90d0acb0c661910dd84f416b3053e9710af;p=pandora-kernel.git 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 Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed