IPoIB: Check multicast address format
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Sun, 6 Sep 2009 03:23:40 +0000 (20:23 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:23:40 +0000 (20:23 -0700)
commit5e47596bee12597824a3b5b21e20f80b61e58a35
tree10e74d0c390283e6d449d3c9b171c8c689b5be0c
parent721d67cdca5b7642b380ca0584de8dceecf6102f
IPoIB: Check multicast address format

Check that the format of multicast link addresses is correct before
taking them from dev->mc_list to priv->multicast_list.  This way we
never try to send a bogus address to the SA, which prevents badness
from erronous 'ip maddr addr add', broken bonding drivers, etc.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_multicast.c