[LTP] [PATCH] syscalls/msync: Assgin value for page_sz

Petr Vorel pvorel@suse.cz
Tue Jan 26 09:26:30 CET 2021


Hi Xu, Li,

> On Tue, Jan 26, 2021 at 9:42 AM Yang Xu <xuyang2018.jy@cn.fujitsu.com>
> wrote:

> > Since the previous patch, it removes useless getpagesize()
> > check because this function never fail. But it also remove
> > the page_size assignment and it lead case fail as below:

> > msync02     1  TBROK  :  msync02.c:133: mmap failed: errno=EINVAL(22):
> > Invalid argument
> > msync02     2  TBROK  :  msync02.c:133: Remaining cases broken
> > msync02     3  TBROK  :  msync02.c:147: munmap failed: errno=EINVAL(22):
> > Invalid argument

> > Fix this and also fix compiler warning by using size_t data type instead
> > of int.


> Pushed, thanks for the fix.
I'm sorry for a regression and thanks for fixing it.

Kind regards,
Petr


More information about the ltp mailing list