Use sizeof(variable) instead of sizeof(type) in memory allocations to prevent problems if the variable type changes in the future. Signed-off-by: Simon Sandström <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>