mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 01:34:00 +08:00
ramoops: fix use of rounddown_pow_of_two()
The return value of rounddown_pow_of_two wasn't evaluated, so the operation was a no-op. Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com> Reported-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
028ee4be34
commit
fdb5950754
@ -125,8 +125,8 @@ static int __init ramoops_probe(struct platform_device *pdev)
|
||||
goto fail3;
|
||||
}
|
||||
|
||||
rounddown_pow_of_two(pdata->mem_size);
|
||||
rounddown_pow_of_two(pdata->record_size);
|
||||
pdata->mem_size = rounddown_pow_of_two(pdata->mem_size);
|
||||
pdata->record_size = rounddown_pow_of_two(pdata->record_size);
|
||||
|
||||
/* Check for the minimum memory size */
|
||||
if (pdata->mem_size < MIN_MEM_SIZE &&
|
||||
|
Loading…
Reference in New Issue
Block a user