From: Samuel Mendoza-Jonas Date: Wed, 21 Dec 2016 04:46:09 +0000 (+1100) Subject: discover/network: Ensure interfaces have device before configuring X-Git-Tag: v1.4.1~4 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=0e2792afaf5a2d576ed12b965468069819057c07;hp=0e2792afaf5a2d576ed12b965468069819057c07 discover/network: Ensure interfaces have device before configuring Reorganise network_handle_nlmsg() slightly to create interface->dev just before calling configure_interface() rather than only for brand new interfaces. This ensures existing interfaces which have had ->dev removed but receive a new configure event do not access a NULL pointer during the configuration process. Signed-off-by: Samuel Mendoza-Jonas ---