mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
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:
committed by
Gerrit - the friendly Code Review server
parent
77c49f037d
commit
181c86c7e8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user