Hi Jukka,

FYI, there are new smatch warnings show up in

tree:   
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git 
master
head:   89863109e3dd562529ffd8a559b0de068d1d8502
commit: 18722c247023035b9e2e2a08a887adec2a9a6e49 [5/6] Bluetooth: Enable 
6LoWPAN support for BT LE devices

net/bluetooth/6lowpan.c:334 bt_6lowpan_recv() error: we previously assumed 
'dev' could be null (see line 331)

git remote add bluetooth 
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
git remote update bluetooth
git checkout 18722c247023035b9e2e2a08a887adec2a9a6e49
vim +/dev +334 net/bluetooth/6lowpan.c

18722c24 Jukka Rissanen 2013-12-11  325  
18722c24 Jukka Rissanen 2013-12-11  326         peer = lookup_peer(conn);
18722c24 Jukka Rissanen 2013-12-11  327         if (!peer)
18722c24 Jukka Rissanen 2013-12-11  328                 return -ENOENT;
18722c24 Jukka Rissanen 2013-12-11  329  
18722c24 Jukka Rissanen 2013-12-11  330         dev = lookup_dev(conn);
18722c24 Jukka Rissanen 2013-12-11 @331         if (dev && !dev->netdev)

The condition should be:
                                                if (!dev || !dev->netdev)

18722c24 Jukka Rissanen 2013-12-11  332                 return -ENOENT;
18722c24 Jukka Rissanen 2013-12-11  333  
18722c24 Jukka Rissanen 2013-12-11 @334         err = recv_pkt(skb, 
dev->netdev, conn);
18722c24 Jukka Rissanen 2013-12-11  335         BT_DBG("recv pkt %d", err);
18722c24 Jukka Rissanen 2013-12-11  336  
18722c24 Jukka Rissanen 2013-12-11  337         return err;

---
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