Searched refs:uprog (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/isdn/i4l/
H A Disdn_ppp.c449 struct sock_fprog uprog; get_filter() local
453 if (copy_from_user(&uprog, arg, sizeof(uprog))) get_filter()
456 if (!uprog.len) { get_filter()
461 /* uprog.len is unsigned short, so no overflow here */ get_filter()
462 len = uprog.len * sizeof(struct sock_filter); get_filter()
463 code = memdup_user(uprog.filter, len); get_filter()
468 return uprog.len; get_filter()
/linux-4.1.27/drivers/net/ppp/
H A Dppp_generic.c542 struct sock_fprog uprog; get_filter() local
546 if (copy_from_user(&uprog, arg, sizeof(uprog))) get_filter()
549 if (!uprog.len) { get_filter()
554 len = uprog.len * sizeof(struct sock_filter); get_filter()
555 code = memdup_user(uprog.filter, len); get_filter()
560 return uprog.len; get_filter()

Completed in 95 milliseconds