From 929f29995d7ce7c14aa8660df93b58373890e0d2 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 16 Mar 2010 13:30:44 +0000 Subject: [PATCH] --- yaml --- r: 188874 b: refs/heads/master c: f5d410f2ea7ba340f11815a56e05b9fa9421c421 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/net/netlink.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 7365921966ee..9bcf6c909e6f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6830c25b7d08fbbd922959425193791bc42079f2 +refs/heads/master: f5d410f2ea7ba340f11815a56e05b9fa9421c421 diff --git a/trunk/include/net/netlink.h b/trunk/include/net/netlink.h index f82e463c875a..4fc05b58503e 100644 --- a/trunk/include/net/netlink.h +++ b/trunk/include/net/netlink.h @@ -945,7 +945,11 @@ static inline u64 nla_get_u64(const struct nlattr *nla) */ static inline __be64 nla_get_be64(const struct nlattr *nla) { - return *(__be64 *) nla_data(nla); + __be64 tmp; + + nla_memcpy(&tmp, nla, sizeof(tmp)); + + return tmp; } /**