]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/nes: Fix error path in nes_accept()
authorFaisal Latif <faisal.latif@intel.com>
Mon, 27 Apr 2009 20:45:19 +0000 (13:45 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 27 Apr 2009 20:45:19 +0000 (13:45 -0700)
commit79840acc7cbd106d4137b9ba230caaa43211a32d
treeffccbec443c56132035336ef80f65759947beb62
parent5947bc907dc56b33baa3a60484cfaa844b2a7df6
RDMA/nes: Fix error path in nes_accept()

If reg_phys_mem() fails, we need to free memory allocated for MPA
frame with private data before returning the error. Also move
nes_add_ref() after the reg_phys_mem() is successful.

Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c