Merge tag 'nfsd-4.4-1' of git://linux-nfs.org/~bfields/linux
[firefly-linux-kernel-4.4.55.git] / include / net / dst_metadata.h
index ce009710120ca8b541615b237a329ee089ec357b..6816f0fa5693dc275e1e4997375f29b5d99f7b64 100644 (file)
@@ -63,12 +63,13 @@ static inline struct metadata_dst *tun_rx_dst(int md_size)
 static inline struct metadata_dst *tun_dst_unclone(struct sk_buff *skb)
 {
        struct metadata_dst *md_dst = skb_metadata_dst(skb);
-       int md_size = md_dst->u.tun_info.options_len;
+       int md_size;
        struct metadata_dst *new_md;
 
        if (!md_dst)
                return ERR_PTR(-EINVAL);
 
+       md_size = md_dst->u.tun_info.options_len;
        new_md = metadata_dst_alloc(md_size, GFP_ATOMIC);
        if (!new_md)
                return ERR_PTR(-ENOMEM);