Home
last modified time | relevance | path

Searched refs:bad_buf (Results 1 – 1 of 1) sorted by relevance

/drivers/misc/
Dlkdtm_usercopy.c177 unsigned char *bad_buf = NULL; in do_usercopy_heap_flag() local
190 bad_buf = kmem_cache_alloc(bad_cache, GFP_KERNEL); in do_usercopy_heap_flag()
191 if (!good_buf || !bad_buf) { in do_usercopy_heap_flag()
206 memset(bad_buf, 'B', cache_size); in do_usercopy_heap_flag()
217 if (copy_to_user((void __user *)user_addr, bad_buf, in do_usercopy_heap_flag()
231 if (copy_from_user(bad_buf, (void __user *)user_addr, in do_usercopy_heap_flag()
241 if (bad_buf) in do_usercopy_heap_flag()
242 kmem_cache_free(bad_cache, bad_buf); in do_usercopy_heap_flag()