Searched refs:max_addr (Results 1 – 2 of 2) sorted by relevance
94 unsigned long max_addr, src_addr; in strnlen_user() local99 max_addr = user_addr_max(); in strnlen_user()101 if (likely(src_addr < max_addr)) { in strnlen_user()102 unsigned long max = max_addr - src_addr; in strnlen_user()
99 unsigned long max_addr, src_addr; in strncpy_from_user() local104 max_addr = user_addr_max(); in strncpy_from_user()106 if (likely(src_addr < max_addr)) { in strncpy_from_user()107 unsigned long max = max_addr - src_addr; in strncpy_from_user()