diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 3 | ||||
-rw-r--r-- | net/netfilter/Kconfig | 2 | ||||
-rw-r--r-- | net/netfilter/x_tables.c | 5 | ||||
-rw-r--r-- | net/rds/ib_cm.c | 6 |
4 files changed, 7 insertions, 9 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index b7ba81afc6f9..edcf019c056d 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -6450,7 +6450,7 @@ const char *netdev_drivername(const struct net_device *dev) | |||
6450 | return empty; | 6450 | return empty; |
6451 | } | 6451 | } |
6452 | 6452 | ||
6453 | static int __netdev_printk(const char *level, const struct net_device *dev, | 6453 | int __netdev_printk(const char *level, const struct net_device *dev, |
6454 | struct va_format *vaf) | 6454 | struct va_format *vaf) |
6455 | { | 6455 | { |
6456 | int r; | 6456 | int r; |
@@ -6465,6 +6465,7 @@ static int __netdev_printk(const char *level, const struct net_device *dev, | |||
6465 | 6465 | ||
6466 | return r; | 6466 | return r; |
6467 | } | 6467 | } |
6468 | EXPORT_SYMBOL(__netdev_printk); | ||
6468 | 6469 | ||
6469 | int netdev_printk(const char *level, const struct net_device *dev, | 6470 | int netdev_printk(const char *level, const struct net_device *dev, |
6470 | const char *format, ...) | 6471 | const char *format, ...) |
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index 32bff6d86cb2..8260b13d93c9 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig | |||
@@ -505,7 +505,7 @@ config NETFILTER_XT_TARGET_LED | |||
505 | echo netfilter-ssh > /sys/class/leds/<ledname>/trigger | 505 | echo netfilter-ssh > /sys/class/leds/<ledname>/trigger |
506 | 506 | ||
507 | For more information on the LEDs available on your system, see | 507 | For more information on the LEDs available on your system, see |
508 | Documentation/leds-class.txt | 508 | Documentation/leds/leds-class.txt |
509 | 509 | ||
510 | config NETFILTER_XT_TARGET_MARK | 510 | config NETFILTER_XT_TARGET_MARK |
511 | tristate '"MARK" target support' | 511 | tristate '"MARK" target support' |
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index b0869fe3633b..71441b934ffd 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c | |||
@@ -776,12 +776,11 @@ static int xt_jumpstack_alloc(struct xt_table_info *i) | |||
776 | 776 | ||
777 | size = sizeof(void **) * nr_cpu_ids; | 777 | size = sizeof(void **) * nr_cpu_ids; |
778 | if (size > PAGE_SIZE) | 778 | if (size > PAGE_SIZE) |
779 | i->jumpstack = vmalloc(size); | 779 | i->jumpstack = vzalloc(size); |
780 | else | 780 | else |
781 | i->jumpstack = kmalloc(size, GFP_KERNEL); | 781 | i->jumpstack = kzalloc(size, GFP_KERNEL); |
782 | if (i->jumpstack == NULL) | 782 | if (i->jumpstack == NULL) |
783 | return -ENOMEM; | 783 | return -ENOMEM; |
784 | memset(i->jumpstack, 0, size); | ||
785 | 784 | ||
786 | i->stacksize *= xt_jumpstack_multiplier; | 785 | i->stacksize *= xt_jumpstack_multiplier; |
787 | size = sizeof(void *) * i->stacksize; | 786 | size = sizeof(void *) * i->stacksize; |
diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index cd67026be2d5..51c868923f64 100644 --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c | |||
@@ -375,23 +375,21 @@ static int rds_ib_setup_qp(struct rds_connection *conn) | |||
375 | goto out; | 375 | goto out; |
376 | } | 376 | } |
377 | 377 | ||
378 | ic->i_sends = vmalloc_node(ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work), | 378 | ic->i_sends = vzalloc_node(ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work), |
379 | ibdev_to_node(dev)); | 379 | ibdev_to_node(dev)); |
380 | if (!ic->i_sends) { | 380 | if (!ic->i_sends) { |
381 | ret = -ENOMEM; | 381 | ret = -ENOMEM; |
382 | rdsdebug("send allocation failed\n"); | 382 | rdsdebug("send allocation failed\n"); |
383 | goto out; | 383 | goto out; |
384 | } | 384 | } |
385 | memset(ic->i_sends, 0, ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work)); | ||
386 | 385 | ||
387 | ic->i_recvs = vmalloc_node(ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work), | 386 | ic->i_recvs = vzalloc_node(ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work), |
388 | ibdev_to_node(dev)); | 387 | ibdev_to_node(dev)); |
389 | if (!ic->i_recvs) { | 388 | if (!ic->i_recvs) { |
390 | ret = -ENOMEM; | 389 | ret = -ENOMEM; |
391 | rdsdebug("recv allocation failed\n"); | 390 | rdsdebug("recv allocation failed\n"); |
392 | goto out; | 391 | goto out; |
393 | } | 392 | } |
394 | memset(ic->i_recvs, 0, ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work)); | ||
395 | 393 | ||
396 | rds_ib_recv_init_ack(ic); | 394 | rds_ib_recv_init_ack(ic); |
397 | 395 | ||