All of lore.kernel.org
 help / color / mirror / Atom feed
* potential bug in bnep_net_set_mc_list()
@ 2010-06-18 23:09 ` Dan Carpenter
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2010-06-18 23:09 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: linux-bluetooth, netdev

This is from ff6e2163f28a: "net: convert multiple drivers to use
netdev_for_each_mc_addr, part7"

net/bluetooth/bnep/netdev.c
   101                  i = 0;
   102                  netdev_for_each_mc_addr(ha, dev) {
   103                          if (i == BNEP_MAX_MULTICAST_FILTERS)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   104                                  break;
   105                          memcpy(__skb_put(skb, ETH_ALEN), ha->addr, ETH_ALEN);
   106                          memcpy(__skb_put(skb, ETH_ALEN), ha->addr, ETH_ALEN);
   107                  }

"i" is never incremented here so the check is always false.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-06-25  5:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-18 23:09 potential bug in bnep_net_set_mc_list() Dan Carpenter
2010-06-18 23:09 ` Dan Carpenter
2010-06-19  0:22 ` Gustavo F. Padovan
2010-06-19  0:22   ` Gustavo F. Padovan
2010-06-19  0:24   ` [PATCH] Bluetooth: Bring back var 'i' increment Gustavo F. Padovan
2010-06-19  0:24     ` Gustavo F. Padovan
2010-06-19  0:28     ` Gustavo F. Padovan
2010-06-19  0:28       ` Gustavo F. Padovan
2010-06-25  5:08       ` David Miller
2010-06-25  5:08         ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.