Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188874
b: refs/heads/master
c: f5d410f
h: refs/heads/master
v: v3
  • Loading branch information
Pablo Neira Ayuso authored and David S. Miller committed Mar 20, 2010
1 parent 3e20c7d commit 929f299
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6830c25b7d08fbbd922959425193791bc42079f2
refs/heads/master: f5d410f2ea7ba340f11815a56e05b9fa9421c421
6 changes: 5 additions & 1 deletion trunk/include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 929f299

Please sign in to comment.