Loading net/bluetooth/smp.c +17 −18 Original line number Diff line number Diff line Loading @@ -127,8 +127,8 @@ static int smp_c1(struct crypto_blkcipher *tfm, u8 k[16], u8 r[16], return err; } static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16], u8 r1[16], u8 r2[16], u8 _r[16]) static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16], u8 r1[16], u8 r2[16], u8 _r[16]) { int err; Loading Loading @@ -215,8 +215,7 @@ static __u8 seclevel_to_authreq(__u8 sec_level) static void build_pairing_cmd(struct l2cap_conn *conn, struct smp_cmd_pairing *req, struct smp_cmd_pairing *rsp, __u8 authreq) struct smp_cmd_pairing *rsp, __u8 authreq) { u8 dist_keys = 0; Loading Loading @@ -498,7 +497,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn) { struct smp_chan *smp; smp = kzalloc(sizeof(struct smp_chan), GFP_ATOMIC); smp = kzalloc(sizeof(*smp), GFP_ATOMIC); if (!smp) return NULL; Loading Loading @@ -732,8 +731,8 @@ static u8 smp_ltk_encrypt(struct l2cap_conn *conn, u8 sec_level) hcon->enc_key_size = key->enc_size; return 1; } static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb) { struct smp_cmd_security_req *rp = (void *) skb->data; Loading Loading
net/bluetooth/smp.c +17 −18 Original line number Diff line number Diff line Loading @@ -127,8 +127,8 @@ static int smp_c1(struct crypto_blkcipher *tfm, u8 k[16], u8 r[16], return err; } static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16], u8 r1[16], u8 r2[16], u8 _r[16]) static int smp_s1(struct crypto_blkcipher *tfm, u8 k[16], u8 r1[16], u8 r2[16], u8 _r[16]) { int err; Loading Loading @@ -215,8 +215,7 @@ static __u8 seclevel_to_authreq(__u8 sec_level) static void build_pairing_cmd(struct l2cap_conn *conn, struct smp_cmd_pairing *req, struct smp_cmd_pairing *rsp, __u8 authreq) struct smp_cmd_pairing *rsp, __u8 authreq) { u8 dist_keys = 0; Loading Loading @@ -498,7 +497,7 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn) { struct smp_chan *smp; smp = kzalloc(sizeof(struct smp_chan), GFP_ATOMIC); smp = kzalloc(sizeof(*smp), GFP_ATOMIC); if (!smp) return NULL; Loading Loading @@ -732,8 +731,8 @@ static u8 smp_ltk_encrypt(struct l2cap_conn *conn, u8 sec_level) hcon->enc_key_size = key->enc_size; return 1; } static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb) { struct smp_cmd_security_req *rp = (void *) skb->data; Loading