mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
power: Fix sizeof(PAGE_SIZE) typo
Fix sizeof(PAGE_SIZE) typo. It should be just PAGE_SIZE for zeroing the swsusp_header. Signed-off-by: OGAWA Hirofumi <hogawa@miraclelinux.com> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Cc: Pavel Machek <pavel@ucw.cz> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c8511f9490
commit
6373da1fb7
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ int swsusp_check(void)
|
|||
resume_bdev = open_by_devnum(swsusp_resume_device, FMODE_READ);
|
||||
if (!IS_ERR(resume_bdev)) {
|
||||
set_blocksize(resume_bdev, PAGE_SIZE);
|
||||
memset(swsusp_header, 0, sizeof(PAGE_SIZE));
|
||||
memset(swsusp_header, 0, PAGE_SIZE);
|
||||
error = bio_read_page(swsusp_resume_block,
|
||||
swsusp_header, NULL);
|
||||
if (error)
|
||||
|
|
Loading…
Reference in a new issue