return sock_setbindtodevice(sk, optval, optlen);
/* START_OF_KNOX_NPA */
- if (optname == SO_SET_DOMAIN_NAME)
+ if (optname == SO_SET_DOMAIN_NAME) {
return sock_set_domain_name(sk, optval, optlen);
- if (optname == SO_SET_DNS_UID)
+ }
+ if (optname == SO_SET_DNS_UID) {
return sock_set_dns_uid(sk, optval, optlen);
+ }
/* END_OF_KNOX_NPA */
- if (optlen < sizeof(int))
+ if (optlen < sizeof(int)) {
return -EINVAL;
+ }
if (get_user(val, (int __user *)optval))
return -EFAULT;