From: Mathias Krause Date: Mon, 30 Sep 2013 20:03:07 +0000 (+0200) Subject: connector: use nlmsg_len() to check message length X-Git-Tag: v3.2.53~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c92d60f0b331feafbf42a33aa6e17cdc2d7448c9;p=pandora-kernel.git 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. Cc: stable@vger.kernel.org # v2.6.14+ Signed-off-by: Mathias Krause Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed