Arvid Brodin a718dcc5e5 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 <arvid.brodin@alten.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-07-08 11:35:31 -07:00
..
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00
2014-07-08 11:35:31 -07:00