Merge tag 'v5.19-rockchip-drivers2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / include / net / ip.h
index 0161137914cf9d2111fde635b00604a5cf3d768c..26fffda78cca4af03f0cfc8194f34b16d99a2fc7 100644 (file)
@@ -94,7 +94,7 @@ static inline void ipcm_init_sk(struct ipcm_cookie *ipcm,
 
        ipcm->sockc.mark = inet->sk.sk_mark;
        ipcm->sockc.tsflags = inet->sk.sk_tsflags;
-       ipcm->oif = inet->sk.sk_bound_dev_if;
+       ipcm->oif = READ_ONCE(inet->sk.sk_bound_dev_if);
        ipcm->addr = inet->inet_saddr;
 }