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()
115 unsigned long max_addr, src_addr; in strncpy_from_user() local123 max_addr = user_addr_max(); in strncpy_from_user()125 if (likely(src_addr < max_addr)) { in strncpy_from_user()126 unsigned long max = max_addr - src_addr; in strncpy_from_user()