On 03/09/2017 08:59 AM, Patrik Flykt wrote:
If there is an ongoing connect or disconnect when the system is
the Bluetooth PAN device might be gone when the system resumes. This can
cause the network being removed before the connect or disconnect callback
is called. As the connect or disconnect callback do not re-check for an
existing pan->network, a crash will happen as a NULL network is accessed.
Fix this by verifying that pan->network exists when the callback is called.
While I was at processing the inbox, I applied this patch as well.