]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net/af_iucv: always register net_device notifier
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 18 Jun 2019 18:43:01 +0000 (20:43 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit730771c14f825ebe82fccab3d04e48d6f7747fbd
treeede072de9bf1f8b5b4ce8d8ec4774fccb939081f
parent2ed3362cda0df371433c4c6066ceebd2666b1818
net/af_iucv: always register net_device notifier

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 06996c1d4088a0d5f3e7789d7f96b4653cc947cc ]

Even when running as VM guest (ie pr_iucv != NULL), af_iucv can still
open HiperTransport-based connections. For robust operation these
connections require the af_iucv_netdev_notifier, so register it
unconditionally.

Also handle any error that register_netdevice_notifier() returns.

Fixes: 9fbd87d41392 ("af_iucv: handle netdev events")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/iucv/af_iucv.c