git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cgroup: Check task_lock in task_subsys_state()
[pandora-kernel.git]
/
include
/
net
/
netlink.h
diff --git
a/include/net/netlink.h
b/include/net/netlink.h
index
f82e463
..
4fc05b5
100644
(file)
--- a/
include/net/netlink.h
+++ b/
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;
}
/**