mirror of https://gitee.com/openkylin/linux.git
staging: unisys: fix sizeof() in visor_memregion_create_overlapped()
Use the variable name rather than the type in the sizeof() call in this function. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
92d00cf0f5
commit
6db05d3f9a
|
@ -86,7 +86,7 @@ visor_memregion_create_overlapped(struct memregion *parent, ulong offset,
|
|||
__func__, offset, nbytes);
|
||||
return NULL;
|
||||
}
|
||||
memregion = kzalloc(sizeof(struct memregion), GFP_KERNEL|__GFP_NORETRY);
|
||||
memregion = kzalloc(sizeof(*memregion), GFP_KERNEL|__GFP_NORETRY);
|
||||
if (memregion == NULL) {
|
||||
ERRDRV("%s allocation failed", __func__);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue