Re: [PATCH v2] xen: avoid crash in disable_hotplug_cpu

From: Olaf Hering
Date: Fri Sep 07 2018 - 01:45:31 EST


Am Thu, 6 Sep 2018 22:31:45 +0200
schrieb Olaf Hering <olaf@xxxxxxxxx>:

> IF cpu0_hotpluggable is broken, then only "if (!cpu) return;" can help.

Another option is to do cpu_online() twice to check if device_offline did anything.
Not sure if the compiler would fold the two checks into a single check.

Olaf

Attachment: pgpKqPH5YC5Ux.pgp
Description: Digitale Signatur von OpenPGP