RDMA/amso1100: Fix unitialized pseudo_netdev accessed in c2_register_device
authorTom Tucker <tom@opengridcomputing.com>
Wed, 8 Nov 2006 20:23:22 +0000 (14:23 -0600)
committerRoland Dreier <rolandd@cisco.com>
Mon, 13 Nov 2006 17:38:04 +0000 (09:38 -0800)
commit2ffcab6ae44b02679229ca1852526d0a6e062dd2
treec99a55514f37f6c8b21e0879a247c508c9346bfd
parentf2c238a0c5e155acd49752c5fb93fb8d8534232b
RDMA/amso1100: Fix unitialized pseudo_netdev accessed in c2_register_device

Rework some load-time error handling: c2_register_device() leaked when
it failed, and the function that called it didn't check the return code.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/amso1100/c2.c
drivers/infiniband/hw/amso1100/c2_provider.c