diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-21 23:39:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-21 23:39:59 -0400 |
commit | d7fff6f4d1ed1bc31577df887fefcb1541923367 (patch) | |
tree | e2f37519c57efe20f47dc1df694af28d537f67b2 /net/core/dev.c | |
parent | 6df8cd3d4f921762504c4d1e7ed702b745702543 (diff) | |
parent | e51f802babc5e368c60fbfd08c6c11269c9253b0 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
[NET]: Add missing entries to family name tables
[NET]: Make NETDEVICES depend on NET.
[IPV6]: endianness bug in ip6_tunnel
[IrDA]: TOSHIBA_FIR depends on virt_to_bus
[IrDA]: EP7211 IR driver port to the latest SIR API
[IrDA] Typo fix in irnetlink.c copyright
[NET]: Fix loopback crashes when multiqueue is enabled.
[IPV4]: Fix inetpeer gcc-4.2 warnings
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 38212c3f9971..ee4035571c21 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -3624,7 +3624,7 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name, | |||
3624 | 3624 | ||
3625 | /* ensure 32-byte alignment of both the device and private area */ | 3625 | /* ensure 32-byte alignment of both the device and private area */ |
3626 | alloc_size = (sizeof(*dev) + NETDEV_ALIGN_CONST + | 3626 | alloc_size = (sizeof(*dev) + NETDEV_ALIGN_CONST + |
3627 | (sizeof(struct net_device_subqueue) * queue_count)) & | 3627 | (sizeof(struct net_device_subqueue) * (queue_count - 1))) & |
3628 | ~NETDEV_ALIGN_CONST; | 3628 | ~NETDEV_ALIGN_CONST; |
3629 | alloc_size += sizeof_priv + NETDEV_ALIGN_CONST; | 3629 | alloc_size += sizeof_priv + NETDEV_ALIGN_CONST; |
3630 | 3630 | ||
@@ -3642,7 +3642,7 @@ struct net_device *alloc_netdev_mq(int sizeof_priv, const char *name, | |||
3642 | dev->priv = ((char *)dev + | 3642 | dev->priv = ((char *)dev + |
3643 | ((sizeof(struct net_device) + | 3643 | ((sizeof(struct net_device) + |
3644 | (sizeof(struct net_device_subqueue) * | 3644 | (sizeof(struct net_device_subqueue) * |
3645 | queue_count) + NETDEV_ALIGN_CONST) | 3645 | (queue_count - 1)) + NETDEV_ALIGN_CONST) |
3646 | & ~NETDEV_ALIGN_CONST)); | 3646 | & ~NETDEV_ALIGN_CONST)); |
3647 | } | 3647 | } |
3648 | 3648 | ||