diff options
author | 2024-05-04 12:55:44 -0400 | |
---|---|---|
committer | 2024-05-06 10:58:17 -0400 | |
commit | 18b4abcead744322feb90ba31450e7d770e928bd (patch) | |
tree | a0f18630106602e3e030d5a693119572e7856449 /net/unix/af_unix.c | |
parent | bcachefs: Fix bch2_dev_lookup() refcounting (diff) | |
download | wireguard-linux-18b4abcead744322feb90ba31450e7d770e928bd.tar.xz wireguard-linux-18b4abcead744322feb90ba31450e7d770e928bd.zip |
bcachefs: Fix lifetime issue in device iterator helpers
bch2_get_next_dev() and bch2_get_next_online_dev() iterate over devices,
dropping and taking refs as they go; we can't access the previous device
(for ca->dev_idx) after we've dropped our ref to it, unless we take
rcu_read_lock() first.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions