summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-max77843.c
diff options
context:
space:
mode:
authorMichael J. Ruhl <michael.j.ruhl@intel.com>2017-04-09 19:15:51 +0200
committerDoug Ledford <dledford@redhat.com>2017-04-28 19:48:01 +0200
commit8561eae60ff9417a50fa1fb2b83ae950dc5c1e21 (patch)
tree6b90fadf3591c52c7ca7169917dfd065d448e69e /drivers/extcon/extcon-max77843.c
parentIB/hfi1: Correct MulticastMask/CollectiveMask info to SMA output (diff)
downloadlinux-8561eae60ff9417a50fa1fb2b83ae950dc5c1e21.tar.xz
linux-8561eae60ff9417a50fa1fb2b83ae950dc5c1e21.zip
IB/core: For multicast functions, verify that LIDs are multicast LIDs
The Infiniband spec defines "A multicast address is defined by a MGID and a MLID" (section 10.5). Currently the MLID value is not validated. Add check to verify that the MLID value is in the correct address range. Fixes: 0c33aeedb2cf ("[IB] Add checks to multicast attach and detach") Cc: stable@vger.kernel.org Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/extcon/extcon-max77843.c')
0 files changed, 0 insertions, 0 deletions