Skip to content

Commit c0e2eaf

Browse files
kcp-gitSomasundaram Krishnasamy
authored andcommitted
net/rds: rds_ib_remove_one() should not call rds_ib_dev_free_dev()
rds_ib_dev_free_dev() should only be called when there is no reference to the device being freed. Orabug: 31718164 Signed-off-by: Ka-Cheong Poon <[email protected]> Tested-by: Jenny Xu <[email protected]> Reviewed-by: Darren Kenny <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]>
1 parent 346d725 commit c0e2eaf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

net/rds/ib.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2020 Oracle and/or its affiliates.
33
*
44
* This software is available to you under a choice of one of two
55
* licenses. You may choose to be licensed under the terms of the GNU
@@ -511,8 +511,6 @@ void rds_ib_remove_one(struct ib_device *device, void *client_data)
511511
*/
512512
synchronize_rcu();
513513
rds_ib_dev_put(rds_ibdev);
514-
/* free up lower layer resource since it may be the last change */
515-
rds_ib_dev_free_dev(rds_ibdev);
516514
rds_ib_dev_put(rds_ibdev);
517515
}
518516

0 commit comments

Comments
 (0)