From: Thomas Graf Date: Sat, 30 Nov 2013 12:21:31 +0000 (+0100) Subject: netlink: Avoid netlink mmap alloc if msg size exceeds frame size X-Git-Tag: v3.14-rc1~94^2~265^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aae9f0e22c07f6b97752741156ac0b3637d37a1a;p=pandora-kernel.git netlink: Avoid netlink mmap alloc if msg size exceeds frame size An insufficent ring frame size configuration can lead to an unnecessary skb allocation for every Netlink message. Check frame size before taking the queue lock and allocating the skb and re-check with lock to be safe. Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann Signed-off-by: Jesse Gross --- Reading git-diff-tree failed