]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Fix uninitialized variable use in check_qp_port_pkey_settings
authorDaniel Jurgens <danielj@mellanox.com>
Fri, 30 Jun 2017 14:35:35 +0000 (17:35 +0300)
committerJames Morris <james.l.morris@oracle.com>
Thu, 6 Jul 2017 23:49:26 +0000 (09:49 +1000)
commit79d0636ac7f839d57680305a462f0d8ff9bb13ec
tree6893389e94fa681469cd5cc613aa01c05b2b9562
parentb5d0ebc99bf5d0801a5ecbe958caa3d68b8eaee8
IB/core: Fix uninitialized variable use in check_qp_port_pkey_settings

Check the return value from get_pkey_and_subnet_prefix to prevent using
uninitialized variables.

Fixes: d291f1a65232 ("IB/core: Enforce PKey security on QPs")
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
drivers/infiniband/core/security.c