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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 15:20:58 +0000 (08:20 -0700)
commit61d25be9407da5fa1fb7b5cf30fac1c1a9a37ed8
tree8961961c07e19ad1e3c12936cc612ae6a1efffdb
parentf0a8d2629042f2e0ab93802db22f5fe560135274
RDMA/core: Fix for parsing netlink string attribute

commit ec04847c0c5b471bab2dacceadfdb803a9d1a2ea upstream.

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>
Reviewed-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/iwpm_msg.c