summaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/hsr/hsr_main.c')
-rw-r--r--net/hsr/hsr_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/hsr/hsr_main.c b/net/hsr/hsr_main.c
index 779d28b65417..cd37d0011b42 100644
--- a/net/hsr/hsr_main.c
+++ b/net/hsr/hsr_main.c
@@ -36,6 +36,10 @@ static int hsr_netdev_notify(struct notifier_block *nb, unsigned long event,
return NOTIFY_DONE; /* Not an HSR device */
hsr = netdev_priv(dev);
port = hsr_port_get_hsr(hsr, HSR_PT_MASTER);
+ if (port == NULL) {
+ /* Resend of notification concerning removed device? */
+ return NOTIFY_DONE;
+ }
} else {
hsr = port->hsr;
}
/+8 | * scripts/kernel-doc: check that non-void fcts describe their return valueYacine Belkadi2012-11-271-0/+34 | * Kernel-doc: Convention: Use a "Return" section to describe return valuesYacine Belkadi2012-11-271-3/+10 | * radeon: Fix typo and copy/paste error in commentsPaul Bolle2012-11-261-2/+2 | * doc: Remove unnecessary declarations from Documentation/accounting/getdelays.cAnthony G. Basile2012-11-261-1/+0Star | * various: Fix spelling of "asynchronous" in comments.Adam Buchbinder2012-11-1911-14/+14 | * Fix misspellings of "whether" in comments.Adam Buchbinder2012-11-1945-58/+58 | * eisa: Fix spelling of "asynchronous".Adam Buchbinder2012-11-191-2/+2 | * various: Fix spelling of "registered" in comments.Adam Buchbinder2012-11-196-6/+6 | * doc: fix quite a few typos within DocumentationMasanari Iida2012-11-1911-14/+14 | * target: iscsi: fix comment typos in target/iscsi driversMasanari Iida2012-11-193-5/+5 | * treewide: fix typo of "suport" in various comments and KconfigMasanari Iida2012-11-1925-25/+25 | * treewide: fix typo of "suppport" in various commentsMasanari Iida2012-11-196-6/+6 | * x86: remove offsets.h from .gitignore and dontdiffPaul Bolle2012-11-192-2/+0Star | * gen_init_cpio: remove redundant empty lineJesper Juhl2012-11-191-1/+0Star | * treewide: fix printk typo in multiple driversMasanari Iida2012-11-198-8/+8 | * alpha: use BUG_ON where possibleSasha Levin2012-11-081-8/+4Star | * Btrfs: Fix printk and variable nameMasanari Iida2012-11-012-2/+2 | * btrfs: unpin_extent_cache: fix the typo and unnecessary arguementsLiu Bo2012-10-301-2/+1Star | * qla2xxx: Fix typo in qla2xxx driversMasanari Iida2012-10-304-11/+11 | * md: Fix typo in drivers/mdMasanari Iida2012-10-294-5/+5 | * firmware: use noinline_for_stackCesar Eduardo Barros2012-10-281-1/+1 | * Merge branch 'master' into for-nextJiri Kosina2012-10-28