IB/srp: Fix list corruption/oops on module reload
authorDavid Dillow <dillowda@ornl.gov>
Thu, 3 Jan 2008 18:25:27 +0000 (10:25 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 3 Jan 2008 18:25:27 +0000 (10:25 -0800)
commitb0e47c8b79154772a436f25bf7646733e1d6194c
tree48d4b1232975de4b12b57e4919665e7cc93ccb14
parentb8c9a18712f7b617fda66d878ce3759c9e575ba0
IB/srp: Fix list corruption/oops on module reload

Add a missing call to srp_remove_host() in srp_remove_one() so that we
don't leak SRP transport class list entries.

Tested-by: David Dillow <dillowda@ornl.gov>
Acked-by: FUJITA Tomonori <tomof@acm.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c