tree:   
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git 
master
head:   2c87f4732acc5dc46a0b7e4e7529ca49804b97f1
commit: 473b6ffa78aa307b59612384b84cddf13ffa77b3 [75/78] Bluetooth: Fix locking 
of the SMP context

net/bluetooth/smp.c:1182 smp_conn_security() warn: variable dereferenced before 
check 'conn' (see line 1174)

git remote add bluetooth 
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
git remote update bluetooth
git checkout 473b6ffa78aa307b59612384b84cddf13ffa77b3
vim +/conn +1182 net/bluetooth/smp.c

da85e5e5 Vinicius Costa Gomes 2011-06-09  1168          return 0;
88ba43b6 Anderson Briglia     2011-06-09  1169  }
88ba43b6 Anderson Briglia     2011-06-09  1170  
cc110922 Vinicius Costa Gomes 2012-08-23  1171  int smp_conn_security(struct 
hci_conn *hcon, __u8 sec_level)
eb492e01 Anderson Briglia     2011-06-09  1172  {
cc110922 Vinicius Costa Gomes 2012-08-23  1173          struct l2cap_conn *conn 
= hcon->l2cap_data;
473b6ffa Johan Hedberg        2014-09-05  1174          struct l2cap_chan *chan 
= conn->smp;
0a66cf20 Johan Hedberg        2014-03-24  1175          struct smp_chan *smp;
2b64d153 Brian Gix            2011-12-21  1176          __u8 authreq;
473b6ffa Johan Hedberg        2014-09-05  1177          int ret;
eb492e01 Anderson Briglia     2011-06-09  1178  
3a0259bb Vinicius Costa Gomes 2011-06-09  1179          BT_DBG("conn %p hcon %p 
level 0x%2.2x", conn, hcon, sec_level);
3a0259bb Vinicius Costa Gomes 2011-06-09  1180  
0a66cf20 Johan Hedberg        2014-03-24  1181          /* This may be NULL if 
there's an unexpected disconnection */
0a66cf20 Johan Hedberg        2014-03-24  1182          if (!conn)
0a66cf20 Johan Hedberg        2014-03-24  1183                  return 1;
0a66cf20 Johan Hedberg        2014-03-24  1184  
757aee0f Johan Hedberg        2013-04-24  1185          if 
(!test_bit(HCI_LE_ENABLED, &hcon->hdev->dev_flags))

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to