* [KJ] net/wan/dlci.c:check return code of
@ 2006-02-09 9:41 walter harms
0 siblings, 0 replies; only message in thread
From: walter harms @ 2006-02-09 9:41 UTC (permalink / raw)
To: kernel-janitors
check return code of 'register_netdevice_notifier'
Signed-off-by: walter harms <wharms@bfs.de>
--- linux/drivers/net/wan/dlci.c.bak 2006-02-01 22:12:53.000000000 +0100
+++ linux/drivers/net/wan/dlci.c 2006-02-01 23:25:40.776811592 +0100
@@ -535,8 +535,14 @@
static int __init init_dlci(void)
{
+ int ret;
dlci_ioctl_set(dlci_ioctl);
- register_netdevice_notifier(&dlci_notifier);
+ ret=register_netdevice_notifier(&dlci_notifier);
+ if (ret < 0) {
+ printk( KERN_WARNING "register_netdevice_notifier failed in
%s\n",__FUNCTION__);
+ dlci_ioctl_set(NULL);
+ return -1;
+ }
printk("%s.\n", version);
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-09 9:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-09 9:41 [KJ] net/wan/dlci.c:check return code of walter harms
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.