Messages in this thread | | | Date | Wed, 26 Nov 2014 09:25:56 -0500 | From | Peter Hurley <> | Subject | Re: [PATCH] tty, serial, 8250: remove __init from function serial8250_console_setup() |
| |
On 11/25/2014 05:21 PM, Arianna Avanzini wrote: > Some RS232 adapters handled by this driver are hotpluggable. The function > serial8250_console_setup() is called during device init and is defined with > the __init macro. In case the driver is built-in, hotplugging the device after > the initialization phase has been completed (and the related memory has been > freed) results in a kernel crash. > This commit fixes the issue by removing __init from the function definition.
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
| |