]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/core: Fix for parsing netlink string attribute
authorTatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Fri, 8 May 2015 21:36:33 +0000 (16:36 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:13 +0000 (13:42 -0400)
commitcbed10970409643e38b6d0e52de3758629f6c2e1
treecc5546ab05ec88d890e8f76f3d60224cb76746a0
parent53456d8b6c8acf15f0684dc4548a5bad9d4db85f
RDMA/core: Fix for parsing netlink string attribute

[ Upstream commit ec04847c0c5b471bab2dacceadfdb803a9d1a2ea ]

The string iwpm_ulib_name is recorded in a nlmsg as a netlink attribute.
Without this fix parsing of the nlmsg by the userspace port mapper service fails
because of unknown attribute length, causing the port mapper service not to
register the client, which has sent the nlmsg.

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Cc: <stable@vger.kernel.org> #v3.16
Reviewed-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/infiniband/core/iwpm_msg.c