From: Arvid Brodin Date: Fri, 4 Jul 2014 21:42:00 +0000 (+0200) Subject: net/hsr: Fix NULL pointer dereference on incomplete hsr_newlink() params. X-Git-Tag: cleanup-for-v3.18~108^2~213^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a718dcc5e56546a62d00f57cc875faac2f42c8bf;p=pandora-kernel.git net/hsr: Fix NULL pointer dereference on incomplete hsr_newlink() params. If none of the slave interfaces are specified, struct nlattr *data[] may be NULL. Make sure to check for that. While I'm at it, fix the horrible error messages displayed when only one of the slave interfaces isn't specified. Signed-off-by: Arvid Brodin Signed-off-by: David S. Miller --- Reading git-diff-tree failed