[PATCH v2 net-next] irda: fix link order if IRDA is built into the kernel

David Miller davem at davemloft.net
Tue Aug 29 17:49:45 UTC 2017


From: Greg KH <gregkh at linuxfoundation.org>
Date: Tue, 29 Aug 2017 19:46:22 +0200

> When moving the IRDA code out of net/ into drivers/staging/irda/net, the
> link order changes when IRDA is built into the kernel.  That causes a
> kernel crash at boot time as netfilter isn't initialized yet.
> 
> To fix this, build and link the irda networking code in the same exact
> order that it was previously before the move.
> 
> Reported-by: kernel test robot <fengguang.wu at intel.com>
> Reported-by: Geert Uytterhoeven <geert at linux-m68k.org>
> Signed-off-by: Greg Kroah-Hartman gregkh at linuxfoundation.org

Greg, just change the initializer in IRDA so that it will run
after subsys_init() when built statically.

IRDA is definitely not the first pontentially statically built
thing that needs netlink up and available.


More information about the devel mailing list