diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-09-30 22:03:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-04 04:23:41 -0800 |
commit | c6077c905957eeb59616ab8a22f3a4527393d40e (patch) | |
tree | 719abf6de7fbff48ad5ff920536191b822c9474d /arch/blackfin | |
parent | f4358dfd80518a11e4386a15750ad2601d0cf539 (diff) |
connector: use nlmsg_len() to check message length
[ Upstream commit 162b2bedc084d2d908a04c93383ba02348b648b0 ]
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.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/blackfin')
0 files changed, 0 insertions, 0 deletions