diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/core/dev.c | 4 | ||||
| -rw-r--r-- | net/irda/irnet/irnet.h | 1 | ||||
| -rw-r--r-- | net/irda/irnet/irnet_ppp.c | 3 | ||||
| -rw-r--r-- | net/iucv/af_iucv.c | 8 | ||||
| -rw-r--r-- | net/iucv/iucv.c | 9 |
5 files changed, 10 insertions, 15 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index fca23a3bf12c..821cb1628e5e 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -4585,8 +4585,8 @@ static int __init net_dev_init(void) | |||
| 4585 | 4585 | ||
| 4586 | dev_boot_phase = 0; | 4586 | dev_boot_phase = 0; |
| 4587 | 4587 | ||
| 4588 | open_softirq(NET_TX_SOFTIRQ, net_tx_action, NULL); | 4588 | open_softirq(NET_TX_SOFTIRQ, net_tx_action); |
| 4589 | open_softirq(NET_RX_SOFTIRQ, net_rx_action, NULL); | 4589 | open_softirq(NET_RX_SOFTIRQ, net_rx_action); |
| 4590 | 4590 | ||
| 4591 | hotcpu_notifier(dev_cpu_callback, 0); | 4591 | hotcpu_notifier(dev_cpu_callback, 0); |
| 4592 | dst_init(); | 4592 | dst_init(); |
diff --git a/net/irda/irnet/irnet.h b/net/irda/irnet/irnet.h index b001c361ad30..bccf4d0059f0 100644 --- a/net/irda/irnet/irnet.h +++ b/net/irda/irnet/irnet.h | |||
| @@ -241,6 +241,7 @@ | |||
| 241 | #include <linux/module.h> | 241 | #include <linux/module.h> |
| 242 | 242 | ||
| 243 | #include <linux/kernel.h> | 243 | #include <linux/kernel.h> |
| 244 | #include <linux/smp_lock.h> | ||
| 244 | #include <linux/skbuff.h> | 245 | #include <linux/skbuff.h> |
| 245 | #include <linux/tty.h> | 246 | #include <linux/tty.h> |
| 246 | #include <linux/proc_fs.h> | 247 | #include <linux/proc_fs.h> |
diff --git a/net/irda/irnet/irnet_ppp.c b/net/irda/irnet/irnet_ppp.c index e0eab5927c4f..e84a70dd346b 100644 --- a/net/irda/irnet/irnet_ppp.c +++ b/net/irda/irnet/irnet_ppp.c | |||
| @@ -479,6 +479,7 @@ dev_irnet_open(struct inode * inode, | |||
| 479 | ap = kzalloc(sizeof(*ap), GFP_KERNEL); | 479 | ap = kzalloc(sizeof(*ap), GFP_KERNEL); |
| 480 | DABORT(ap == NULL, -ENOMEM, FS_ERROR, "Can't allocate struct irnet...\n"); | 480 | DABORT(ap == NULL, -ENOMEM, FS_ERROR, "Can't allocate struct irnet...\n"); |
| 481 | 481 | ||
| 482 | lock_kernel(); | ||
| 482 | /* initialize the irnet structure */ | 483 | /* initialize the irnet structure */ |
| 483 | ap->file = file; | 484 | ap->file = file; |
| 484 | 485 | ||
| @@ -500,6 +501,7 @@ dev_irnet_open(struct inode * inode, | |||
| 500 | { | 501 | { |
| 501 | DERROR(FS_ERROR, "Can't setup IrDA link...\n"); | 502 | DERROR(FS_ERROR, "Can't setup IrDA link...\n"); |
| 502 | kfree(ap); | 503 | kfree(ap); |
| 504 | unlock_kernel(); | ||
| 503 | return err; | 505 | return err; |
| 504 | } | 506 | } |
| 505 | 507 | ||
| @@ -510,6 +512,7 @@ dev_irnet_open(struct inode * inode, | |||
| 510 | file->private_data = ap; | 512 | file->private_data = ap; |
| 511 | 513 | ||
| 512 | DEXIT(FS_TRACE, " - ap=0x%p\n", ap); | 514 | DEXIT(FS_TRACE, " - ap=0x%p\n", ap); |
| 515 | unlock_kernel(); | ||
| 513 | return 0; | 516 | return 0; |
| 514 | } | 517 | } |
| 515 | 518 | ||
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 7b0038f45b16..bda71015885c 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c | |||
| @@ -1135,8 +1135,7 @@ static void iucv_callback_txdone(struct iucv_path *path, | |||
| 1135 | if (this) | 1135 | if (this) |
| 1136 | kfree_skb(this); | 1136 | kfree_skb(this); |
| 1137 | } | 1137 | } |
| 1138 | if (!this) | 1138 | BUG_ON(!this); |
| 1139 | printk(KERN_ERR "AF_IUCV msg tag %u not found\n", msg->tag); | ||
| 1140 | 1139 | ||
| 1141 | if (sk->sk_state == IUCV_CLOSING) { | 1140 | if (sk->sk_state == IUCV_CLOSING) { |
| 1142 | if (skb_queue_empty(&iucv_sk(sk)->send_skb_q)) { | 1141 | if (skb_queue_empty(&iucv_sk(sk)->send_skb_q)) { |
| @@ -1196,7 +1195,7 @@ static int __init afiucv_init(void) | |||
| 1196 | } | 1195 | } |
| 1197 | cpcmd("QUERY USERID", iucv_userid, sizeof(iucv_userid), &err); | 1196 | cpcmd("QUERY USERID", iucv_userid, sizeof(iucv_userid), &err); |
| 1198 | if (unlikely(err)) { | 1197 | if (unlikely(err)) { |
| 1199 | printk(KERN_ERR "AF_IUCV needs the VM userid\n"); | 1198 | WARN_ON(err); |
| 1200 | err = -EPROTONOSUPPORT; | 1199 | err = -EPROTONOSUPPORT; |
| 1201 | goto out; | 1200 | goto out; |
| 1202 | } | 1201 | } |
| @@ -1210,7 +1209,6 @@ static int __init afiucv_init(void) | |||
| 1210 | err = sock_register(&iucv_sock_family_ops); | 1209 | err = sock_register(&iucv_sock_family_ops); |
| 1211 | if (err) | 1210 | if (err) |
| 1212 | goto out_proto; | 1211 | goto out_proto; |
| 1213 | printk(KERN_INFO "AF_IUCV lowlevel driver initialized\n"); | ||
| 1214 | return 0; | 1212 | return 0; |
| 1215 | 1213 | ||
| 1216 | out_proto: | 1214 | out_proto: |
| @@ -1226,8 +1224,6 @@ static void __exit afiucv_exit(void) | |||
| 1226 | sock_unregister(PF_IUCV); | 1224 | sock_unregister(PF_IUCV); |
| 1227 | proto_unregister(&iucv_proto); | 1225 | proto_unregister(&iucv_proto); |
| 1228 | iucv_unregister(&af_iucv_handler, 0); | 1226 | iucv_unregister(&af_iucv_handler, 0); |
| 1229 | |||
| 1230 | printk(KERN_INFO "AF_IUCV lowlevel driver unloaded\n"); | ||
| 1231 | } | 1227 | } |
| 1232 | 1228 | ||
| 1233 | module_init(afiucv_init); | 1229 | module_init(afiucv_init); |
diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index 918970762131..7f82b7616212 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c | |||
| @@ -1559,16 +1559,11 @@ static void iucv_external_interrupt(u16 code) | |||
| 1559 | 1559 | ||
| 1560 | p = iucv_irq_data[smp_processor_id()]; | 1560 | p = iucv_irq_data[smp_processor_id()]; |
| 1561 | if (p->ippathid >= iucv_max_pathid) { | 1561 | if (p->ippathid >= iucv_max_pathid) { |
| 1562 | printk(KERN_WARNING "iucv_do_int: Got interrupt with " | 1562 | WARN_ON(p->ippathid >= iucv_max_pathid); |
| 1563 | "pathid %d > max_connections (%ld)\n", | ||
| 1564 | p->ippathid, iucv_max_pathid - 1); | ||
| 1565 | iucv_sever_pathid(p->ippathid, iucv_error_no_listener); | 1563 | iucv_sever_pathid(p->ippathid, iucv_error_no_listener); |
| 1566 | return; | 1564 | return; |
| 1567 | } | 1565 | } |
| 1568 | if (p->iptype < 0x01 || p->iptype > 0x09) { | 1566 | BUG_ON(p->iptype < 0x01 || p->iptype > 0x09); |
| 1569 | printk(KERN_ERR "iucv_do_int: unknown iucv interrupt\n"); | ||
| 1570 | return; | ||
| 1571 | } | ||
| 1572 | work = kmalloc(sizeof(struct iucv_irq_list), GFP_ATOMIC); | 1567 | work = kmalloc(sizeof(struct iucv_irq_list), GFP_ATOMIC); |
| 1573 | if (!work) { | 1568 | if (!work) { |
| 1574 | printk(KERN_WARNING "iucv_external_interrupt: out of memory\n"); | 1569 | printk(KERN_WARNING "iucv_external_interrupt: out of memory\n"); |
