commit | 162b2bedc084d2d908a04c93383ba02348b648b0 | [log] [tgz] |
---|---|---|
author | Mathias Krause <minipli@googlemail.com> | Mon Sep 30 22:03:07 2013 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 02 16:03:50 2013 -0400 |
tree | 374417ed599d2aa5c7e5920e0625e145ec4abb4f | |
parent | e727ca82e0e9616ab4844301e6bae60ca7327682 [diff] |
connector: use nlmsg_len() to check message length The current code tests the length of the whole netlink message to be at least as long to fit a cn_msg. This is wrong as nlmsg_len includes the length of the netlink message header. Use nlmsg_len() instead to fix this "off-by-NLMSG_HDRLEN" size check. Cc: stable@vger.kernel.org # v2.6.14+ Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: David S. Miller <davem@davemloft.net>