Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e54b3c1 authored by Girish Moodalbail's avatar Girish Moodalbail Committed by David S. Miller
Browse files

macvlan: fix memory hole in macvlan_dev



Move 'macaddr_count' from after 'netpoll' to after 'nest_level' to pack
and reduce a memory hole.

Fixes: 88ca59d1 (macvlan: remove unused fields in struct macvlan_dev)
Signed-off-by: default avatarGirish Moodalbail <girish.moodalbail@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 936e5d8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -30,10 +30,10 @@ struct macvlan_dev {
	enum macvlan_mode	mode;
	enum macvlan_mode	mode;
	u16			flags;
	u16			flags;
	int			nest_level;
	int			nest_level;
	unsigned int		macaddr_count;
#ifdef CONFIG_NET_POLL_CONTROLLER
#ifdef CONFIG_NET_POLL_CONTROLLER
	struct netpoll		*netpoll;
	struct netpoll		*netpoll;
#endif
#endif
	unsigned int		macaddr_count;
};
};


static inline void macvlan_count_rx(const struct macvlan_dev *vlan,
static inline void macvlan_count_rx(const struct macvlan_dev *vlan,