]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/dst.c
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux...
[karo-tx-linux.git] / net / core / dst.c
index 81a4fa1c95ed32a266ef503b796ee998f4599a1d..9ccca038444f11fda683bbed8bf56ad0d5e1b65e 100644 (file)
@@ -315,7 +315,7 @@ void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old)
 {
        unsigned long prev, new;
 
-       new = (unsigned long) dst_default_metrics;
+       new = ((unsigned long) dst_default_metrics) | DST_METRICS_READ_ONLY;
        prev = cmpxchg(&dst->_metrics, old, new);
        if (prev == old)
                kfree(__DST_METRICS_PTR(old));