IB/ehca: Ensure that guid_entry index is not negative
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 23 Jun 2009 05:23:48 +0000 (22:23 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 23 Jun 2009 05:23:48 +0000 (22:23 -0700)
commitaf04662b4d80de5797a595bc9855d09ef4fe55cc
tree7ca724aeb6bffe8883d42658f76d0c720051f129
parent0cf89dcdbc53f2b43e4ce7419b6ff47f4309c2eb
IB/ehca: Ensure that guid_entry index is not negative

This prevents the memcpy() of a guid_entries element using a negative index.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_hca.c