mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
drbd: must not use connection after kref_put(&connection->kref)
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d29e89e349
commit
792c3fdd94
1 changed files with 1 additions and 2 deletions
|
|
@ -2109,9 +2109,8 @@ static int w_after_conn_state_ch(struct drbd_work *w, int unused)
|
|||
spin_unlock_irq(&connection->resource->req_lock);
|
||||
}
|
||||
}
|
||||
kref_put(&connection->kref, drbd_destroy_connection);
|
||||
|
||||
conn_md_sync(connection);
|
||||
kref_put(&connection->kref, drbd_destroy_connection);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue