From: Ilya Nelkenbaum Date: Thu, 5 Feb 2015 11:53:48 +0000 (+0200) Subject: IB/core: When marshaling ucma path from user-space, clear unused fields X-Git-Tag: fixes-v4.0-rc1~31^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2be9dc0e0fa59cc43c2c7084fc42b430809a0fe;p=pandora-kernel.git IB/core: When marshaling ucma path from user-space, clear unused fields When marshaling a user path to the kernel struct ib_sa_path, we need to zero smac and dmac and set the vlan id to the "no vlan" value. This is to ensure that Ethernet attributes are not used with InfiniBand QPs. Fixes: dd5f03beb4f7 ("IB/core: Ethernet L2 attributes in verbs/cm structures") Signed-off-by: Ilya Nelkenbaum Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed