Searched refs:umem_src (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.4/lib/ |
D | test_user_copy.c | 109 char *umem_src = NULL, *expected = NULL; in test_copy_struct_from_user() local 112 umem_src = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user() 113 ret = test(umem_src == NULL, "kmalloc failed"); in test_copy_struct_from_user() 123 memset(umem_src, 0x3e, size); in test_copy_struct_from_user() 124 ret |= test(copy_to_user(umem, umem_src, size), in test_copy_struct_from_user() 131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user() 164 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 176 kfree(umem_src); in test_copy_struct_from_user()
|