Lines Matching refs:err
69 int err; in cmtp_sock_ioctl() local
81 nsock = sockfd_lookup(ca.sock, &err); in cmtp_sock_ioctl()
83 return err; in cmtp_sock_ioctl()
90 err = cmtp_add_connection(&ca, nsock); in cmtp_sock_ioctl()
91 if (!err) { in cmtp_sock_ioctl()
93 err = -EFAULT; in cmtp_sock_ioctl()
97 return err; in cmtp_sock_ioctl()
115 err = cmtp_get_connlist(&cl); in cmtp_sock_ioctl()
116 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in cmtp_sock_ioctl()
119 return err; in cmtp_sock_ioctl()
125 err = cmtp_get_conninfo(&ci); in cmtp_sock_ioctl()
126 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in cmtp_sock_ioctl()
129 return err; in cmtp_sock_ioctl()
141 int err; in cmtp_sock_compat_ioctl() local
152 err = cmtp_get_connlist(&cl); in cmtp_sock_compat_ioctl()
154 if (!err && put_user(cl.cnum, (uint32_t __user *) arg)) in cmtp_sock_compat_ioctl()
155 err = -EFAULT; in cmtp_sock_compat_ioctl()
157 return err; in cmtp_sock_compat_ioctl()
228 int err; in cmtp_init_sockets() local
230 err = proto_register(&cmtp_proto, 0); in cmtp_init_sockets()
231 if (err < 0) in cmtp_init_sockets()
232 return err; in cmtp_init_sockets()
234 err = bt_sock_register(BTPROTO_CMTP, &cmtp_sock_family_ops); in cmtp_init_sockets()
235 if (err < 0) in cmtp_init_sockets()
243 return err; in cmtp_init_sockets()