]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix oops in ib_cache_gid_set_default_gid
authorDoug Ledford <dledford@redhat.com>
Sat, 23 Apr 2016 00:14:58 +0000 (20:14 -0400)
committerDoug Ledford <dledford@redhat.com>
Sat, 23 Apr 2016 00:26:44 +0000 (20:26 -0400)
commit40ad71f793a52fc77ee33b8d81de06bc072a5a9b
tree143c8803998da1124078565a3dca5d9870285ff1
parentd2660f75108672d8ff27634062efd3a8cb89b371
IB/core: Fix oops in ib_cache_gid_set_default_gid

When we fail to find the default gid index, we can't continue
processing in this routine or else we will pass a negative
index to later routines resulting in invalid memory access
attempts and a kernel oops.

Fixes: e94cc05b8433 (IB/core: Add RoCE GID table management)
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cache.c