[LTP] [PATCH v2] mem/hugetlb: use SAFE_SHMGET() in hugeshmget setup function.

Li Wang wangli.ahau@gmail.com
Mon Apr 13 05:37:52 CEST 2026


Samir <samir@linux.ibm.com> wrote:
>
> I updated hugeshmget02.c and hugeshmget05.c to use SAFE_SHMGET() and configured the setup paths
> so that shared memory allocation succeeds as expected.
>
> In hugeshmget03.c, I also simplified the tst_brk() message by removing the unnecessary
> __func__ usage and keeping a straightforward shmget() error message.
>
> Patch v1: https://lore.kernel.org/ltp/20260407054943.125260-1-samir@linux.ibm.com/
>
> Signed-off-by: Samir <samir@linux.ibm.com>

It would be better to improve the patch description, but it's a minor issue
that can be improved by people who apply it.

Reviewed-by: Li Wang <wangli.ahau@gmail.com>

-- 
Regards,
Li Wang
Email: wangli.ahau@gmail.com


More information about the ltp mailing list