summaryrefslogtreecommitdiff
path: root/drivers/vfio/vfio_iommu_spapr_tce.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-01-28 12:25:33 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-01-29 00:07:16 +0300
commit925f7ea7a6ba2d434f01662a4171867c26bda66a (patch)
treed3f7cbcea3ddf88f2120ee15ecf7d6f9ee641539 /drivers/vfio/vfio_iommu_spapr_tce.c
parent3cd96fddccb8f0cb18899e169314276e3f9f2c44 (diff)
downloadlinux-925f7ea7a6ba2d434f01662a4171867c26bda66a.tar.xz
RDMA/cm: Fix access to uninitialized variable
The ndev will be initialized and held only for successful ib_get_cached_gid(), otherwise it is garbage stack memory. Calling dev_put() in failure path is wrong. Fixes: 16c72e402867 ("IB/cm: Refactor to avoid setting path record software only fields") Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/vfio/vfio_iommu_spapr_tce.c')
0 files changed, 0 insertions, 0 deletions