[IB] Fix leak on MAD initialization failure
authorRoland Dreier <rolandd@cisco.com>
Thu, 6 Oct 2005 20:28:16 +0000 (13:28 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 17 Oct 2005 22:20:28 +0000 (15:20 -0700)
commit4ab6fb7e5b3d34b65a1c3473d80d9d1a462d3a49
tree3a78a17d4499bf95cc23be72ffb88bd49c8e7852
parente23d6d2b090658007732770720a44375cba23200
[IB] Fix leak on MAD initialization failure

There is a bug in ib_mad_init_device(): if ib_agent_port_open() fails
for a given port, then the current code doesn't call ib_mad_port_close()
for that port.

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