]> Git Repo - linux.git/commit - net/iucv/af_iucv.c
net/af_iucv: always register net_device notifier
authorJulian Wiedmann <[email protected]>
Tue, 18 Jun 2019 18:43:01 +0000 (20:43 +0200)
committerDavid S. Miller <[email protected]>
Wed, 19 Jun 2019 20:26:33 +0000 (16:26 -0400)
commit06996c1d4088a0d5f3e7789d7f96b4653cc947cc
tree4a8e26a016df3c714c781189045c89a0d2e7516e
parent238965b71b968dc5b3c0fe430e946f488322c4b5
net/af_iucv: always register net_device notifier

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 <[email protected]>
Reviewed-by: Ursula Braun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/iucv/af_iucv.c
This page took 0.05302 seconds and 4 git commands to generate.