net: sock: Add temporary padding to sock_common

To prevent unintentional writes to skc_bind_node, shift its
location within the struct. This change can be later reverted
once the code writing to this struct offset is removed.

Change-Id: I81b1fefbdbae0312c211d0d26d472aa6e0140aec
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
This commit is contained in:
Matt Wagantall
2013-09-10 12:07:34 -07:00
committed by Gerrit - the friendly Code Review server
parent 77c49f037d
commit 181c86c7e8
+1
View File
@@ -162,6 +162,7 @@ struct sock_common {
volatile unsigned char skc_state;
unsigned char skc_reuse;
int skc_bound_dev_if;
int padding[2];
union {
struct hlist_node skc_bind_node;
struct hlist_nulls_node skc_portaddr_node;