Searched refs:uprog (Results 1 – 2 of 2) sorted by relevance
528 struct sock_fprog uprog; in get_filter() local532 if (copy_from_user(&uprog, arg, sizeof(uprog))) in get_filter()535 if (!uprog.len) { in get_filter()540 len = uprog.len * sizeof(struct sock_filter); in get_filter()541 code = memdup_user(uprog.filter, len); in get_filter()545 err = sk_chk_filter(code, uprog.len); in get_filter()552 return uprog.len; in get_filter()
438 struct sock_fprog uprog; in get_filter() local442 if (copy_from_user(&uprog, arg, sizeof(uprog))) in get_filter()445 if (!uprog.len) { in get_filter()451 len = uprog.len * sizeof(struct sock_filter); in get_filter()452 code = memdup_user(uprog.filter, len); in get_filter()456 err = sk_chk_filter(code, uprog.len); in get_filter()463 return uprog.len; in get_filter()