[S390] xpram: remove __initdata attribute from module parameters
The module parameter 'devs' and 'sizes' are marked as __initdata. The memory for the parameters are freed after module_init completed. This can lead to kernel crashes in param_free_charp. Remove the __initdata attribute to fix the problem. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
cbdbb4c1d2
commit
0c0db0355b
|
@ -62,8 +62,8 @@ static int xpram_devs;
|
|||
/*
|
||||
* Parameter parsing functions.
|
||||
*/
|
||||
static int __initdata devs = XPRAM_DEVS;
|
||||
static char __initdata *sizes[XPRAM_MAX_DEVS];
|
||||
static int devs = XPRAM_DEVS;
|
||||
static char *sizes[XPRAM_MAX_DEVS];
|
||||
|
||||
module_param(devs, int, 0);
|
||||
module_param_array(sizes, charp, NULL, 0);
|
||||
|
|
Loading…
Reference in New Issue