diff options
author | Dan Carpenter <error27@gmail.com> | 2022-11-15 16:16:43 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-15 17:53:31 +0300 |
commit | a7a1598189228b5007369a9622ccdf587be0730f (patch) | |
tree | 948a5f4d64b13b0d605e6d5daf85022d6d71eba8 /block/blk-settings.c | |
parent | d7dbd43f4a828fa1d9a8614d5b0ac40aee6375fe (diff) | |
download | linux-a7a1598189228b5007369a9622ccdf587be0730f.tar.xz |
drbd: use after free in drbd_create_device()
The drbd_destroy_connection() frees the "connection" so use the _safe()
iterator to prevent a use after free.
Fixes: b6f85ef9538b ("drbd: Iterate over all connections")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Link: https://lore.kernel.org/r/Y3Jd5iZRbNQ9w6gm@kili
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions