net: add annotations on hh->hh_len lockless accesses
[linux-2.6-block.git] / include / net / neighbour.h
index 50a67bd6a43413bf69e2ad7b7c27e8460b6fb152..6a86e49181db0f47cf8188ccf92fc7bd0553a4be 100644 (file)
@@ -468,7 +468,7 @@ static inline int neigh_hh_output(const struct hh_cache *hh, struct sk_buff *skb
 
        do {
                seq = read_seqbegin(&hh->hh_lock);
-               hh_len = hh->hh_len;
+               hh_len = READ_ONCE(hh->hh_len);
                if (likely(hh_len <= HH_DATA_MOD)) {
                        hh_alen = HH_DATA_MOD;