Cc: Huang Ying <ying.huang@...>, Pavel Machek <pavel@...>, <nigel@...>, Rafael J. Wysocki <rjw@...>, Andrew Morton <akpm@...>, Vivek Goyal <vgoyal@...>, <mingo@...>, <linux-kernel@...>, Kexec Mailing List <kexec@...>
This part certainly.
The way the code should work, and the way it has in the past is:
image = xchg(&kexec_image, NULL)
if (!image)
return -EINVAL;
Very simple and very obvious and very easy to get right, and it has
been that way for years.
Eric
--