--- linux/drivers/net/hamradio/bpqether.c.bak 2006-02-01 22:13:07.000000000 +0100 +++ linux/drivers/net/hamradio/bpqether.c 2006-02-01 22:30:16.000000000 +0100 @@ -595,6 +595,7 @@ */ static int __init bpq_init_driver(void) { + int ret; #ifdef CONFIG_PROC_FS if (!proc_net_fops_create("bpqether", S_IRUGO, &bpq_info_fops)) { printk(KERN_ERR @@ -605,7 +606,12 @@ dev_add_pack(&bpq_packet_type); - register_netdevice_notifier(&bpq_dev_notifier); + ret = register_netdevice_notifier(&bpq_dev_notifier); + if (ret < 0) { + printk( KERN_WARNING "register_netdevice_notifier failed in %s\n",__FUNCTION__); + dev_remove_pack(&bpq_packet_type); + return -1; + } printk(banner);