linux/drivers/infiniband
Michael S. Tsirkin 347fcfbed2 IPoIB/cm: Fix error handling in ipoib_cm_dev_open()
If skb allocation fails when we start the device, we call
ipoib_cm_dev_stop() even though ipoib_cm_dev_open() did not run to
completion, so we pass an invalid pointer to ib_destroy_cm_id and get
an oops.

Fix by clearing cm.id on error, and testing it in cm_dev_stop().
This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=561>

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-04-30 17:30:28 -07:00
..
core IB: Set class_dev->dev in core for nice device symlink 2007-04-24 21:30:38 -07:00
hw IB/ipath: Don't corrupt pending mmap list when unmapped objects are freed 2007-04-30 17:30:28 -07:00
ulp IPoIB/cm: Fix error handling in ipoib_cm_dev_open() 2007-04-30 17:30:28 -07:00
Kconfig
Makefile