diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-21 15:46:09 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2017-01-12 15:37:17 +1100 |
commit | 0e2792afaf5a2d576ed12b965468069819057c07 (patch) | |
tree | 6a807e862bf464a3d8467dd6e40564811a2b0fd4 /test | |
parent | 3d7ccc23cb49d5f8e371dcf6580b78bb78b77046 (diff) | |
download | petitboot-0e2792afaf5a2d576ed12b965468069819057c07.zip petitboot-0e2792afaf5a2d576ed12b965468069819057c07.tar.gz |
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 <sam@mendozajonas.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions