Skip to content
Commit 72865650 authored by Roel Kluin's avatar Roel Kluin Committed by Benjamin Herrenschmidt
Browse files

powerpc/hvsi: Avoid calculating possibly-invalid address



Check whether index is within bounds prior to calculating a
possibly-invalid address.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Bernd Petrovitsch <bernd@firmix.at>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 6826a57d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment