diff options
Diffstat (limited to 'net/atm')
| -rw-r--r-- | net/atm/common.c | 2 | ||||
| -rw-r--r-- | net/atm/lec.c | 8 | ||||
| -rw-r--r-- | net/atm/mpoa_caches.c | 43 | 
3 files changed, 27 insertions, 26 deletions
| diff --git a/net/atm/common.c b/net/atm/common.c index 6dc12305799e..a3ca922d307b 100644 --- a/net/atm/common.c +++ b/net/atm/common.c @@ -630,7 +630,7 @@ int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size)  		goto out;  	skb->dev = NULL; /* for paths shared with net_device interfaces */  	ATM_SKB(skb)->atm_options = vcc->atm_options; -	if (copy_from_iter(skb_put(skb, size), size, &m->msg_iter) != size) { +	if (!copy_from_iter_full(skb_put(skb, size), size, &m->msg_iter)) {  		kfree_skb(skb);  		error = -EFAULT;  		goto out; diff --git a/net/atm/lec.c b/net/atm/lec.c index 779b3fa6052d..09cfe87f0a44 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c @@ -111,9 +111,9 @@ static inline void lec_arp_put(struct lec_arp_table *entry)  }  static struct lane2_ops lane2_ops = { -	lane2_resolve,		/* resolve,             spec 3.1.3 */ -	lane2_associate_req,	/* associate_req,       spec 3.1.4 */ -	NULL			/* associate indicator, spec 3.1.5 */ +	.resolve = lane2_resolve,		/* spec 3.1.3 */ +	.associate_req = lane2_associate_req,	/* spec 3.1.4 */ +	.associate_indicator = NULL             /* spec 3.1.5 */  };  static unsigned char bus_mac[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; @@ -1059,7 +1059,9 @@ static void __exit lane_module_cleanup(void)  {  	int i; +#ifdef CONFIG_PROC_FS  	remove_proc_entry("lec", atm_proc_root); +#endif  	deregister_atm_ioctl(&lane_ioctl_ops); diff --git a/net/atm/mpoa_caches.c b/net/atm/mpoa_caches.c index 9e60e74c807d..a89fdebeffda 100644 --- a/net/atm/mpoa_caches.c +++ b/net/atm/mpoa_caches.c @@ -535,33 +535,32 @@ static void eg_destroy_cache(struct mpoa_client *mpc)  static const struct in_cache_ops ingress_ops = { -	in_cache_add_entry,               /* add_entry       */ -	in_cache_get,                     /* get             */ -	in_cache_get_with_mask,           /* get_with_mask   */ -	in_cache_get_by_vcc,              /* get_by_vcc      */ -	in_cache_put,                     /* put             */ -	in_cache_remove_entry,            /* remove_entry    */ -	cache_hit,                        /* cache_hit       */ -	clear_count_and_expired,          /* clear_count     */ -	check_resolving_entries,          /* check_resolving */ -	refresh_entries,                  /* refresh         */ -	in_destroy_cache                  /* destroy_cache   */ +	.add_entry = in_cache_add_entry, +	.get = in_cache_get, +	.get_with_mask = in_cache_get_with_mask, +	.get_by_vcc = in_cache_get_by_vcc, +	.put = in_cache_put, +	.remove_entry = in_cache_remove_entry, +	.cache_hit = cache_hit, +	.clear_count = clear_count_and_expired, +	.check_resolving = check_resolving_entries, +	.refresh = refresh_entries, +	.destroy_cache = in_destroy_cache  };  static const struct eg_cache_ops egress_ops = { -	eg_cache_add_entry,               /* add_entry        */ -	eg_cache_get_by_cache_id,         /* get_by_cache_id  */ -	eg_cache_get_by_tag,              /* get_by_tag       */ -	eg_cache_get_by_vcc,              /* get_by_vcc       */ -	eg_cache_get_by_src_ip,           /* get_by_src_ip    */ -	eg_cache_put,                     /* put              */ -	eg_cache_remove_entry,            /* remove_entry     */ -	update_eg_cache_entry,            /* update           */ -	clear_expired,                    /* clear_expired    */ -	eg_destroy_cache                  /* destroy_cache    */ +	.add_entry = eg_cache_add_entry, +	.get_by_cache_id = eg_cache_get_by_cache_id, +	.get_by_tag = eg_cache_get_by_tag, +	.get_by_vcc = eg_cache_get_by_vcc, +	.get_by_src_ip = eg_cache_get_by_src_ip, +	.put = eg_cache_put, +	.remove_entry = eg_cache_remove_entry, +	.update = update_eg_cache_entry, +	.clear_expired = clear_expired, +	.destroy_cache = eg_destroy_cache  }; -  void atm_mpoa_init_cache(struct mpoa_client *mpc)  {  	mpc->in_ops = &ingress_ops; |