aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/iwcm.c
diff options
context:
space:
mode:
authorRalph Campbell <ralph.campbell@qlogic.com>2008-07-22 14:18:33 -0700
committerRoland Dreier <rolandd@cisco.com>2008-07-22 14:18:33 -0700
commit64b784b583061ebfe1d484dd1fdc5a26c6d4293f (patch)
tree2eef2e4af37b00a6ab9c4bf2d2d60dffce980204 /drivers/infiniband/core/iwcm.c
parentmarkers: fix duplicate modpost entry (diff)
downloadlinux-dev-64b784b583061ebfe1d484dd1fdc5a26c6d4293f.tar.xz
linux-dev-64b784b583061ebfe1d484dd1fdc5a26c6d4293f.zip
IB/sa_query: Check if sm_ah is NULL in ib_sa_remove_one()
If update_sm_ah() fails, it leaves the port's sm_ah as NULL. Then if the device or module is removed, ib_sa_remove_one() will dereference a NULL pointer when it calls kref_put(). Fix this by testing if sm_ah is NULL before dropping the reference. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/iwcm.c')
0 files changed, 0 insertions, 0 deletions