]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IB] fail SA queries if device initialization failed
authorRoland Dreier <rolandd@cisco.com>
Thu, 13 Oct 2005 17:45:02 +0000 (10:45 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 17 Oct 2005 22:20:29 +0000 (15:20 -0700)
commit56c202d6e4f542468fe79b8a735cf128898b87fb
tree3080b34f6080d71b88ae26f665b5e23d7f485c69
parent305a7e87055dde2466a855c24ef51a606915d149
[IB] fail SA queries if device initialization failed

If the SA query module's initialization fails for a device, then that
device won't have a struct ib_sa_device associated.  We should fail SA
queries in that case, rather than blindly dereferencing the NULL
pointer we get back from ib_get_client_data().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/sa_query.c