Sabrina Dubroca 0759e552bc macsec: fix negative refcnt on parent link
When creation of a macsec device fails because an identical device
already exists on this link, the current code decrements the refcnt on
the parent link (in ->destructor for the macsec device), but it had not
been incremented yet.

Move the dev_hold(parent_link) call earlier during macsec device
creation.

Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-30 21:11:08 -07:00
..
2016-07-27 14:03:52 -07:00
2016-07-28 17:38:16 -07:00
2016-07-06 15:14:48 -07:00
2016-07-28 15:45:17 -07:00
2016-07-09 01:05:30 +02:00
2016-07-27 14:58:31 -07:00
2016-07-20 23:39:36 -07:00
2016-07-28 17:38:16 -07:00
2016-07-26 17:23:08 -07:00
2016-07-26 18:27:20 -07:00
2016-07-28 17:38:16 -07:00
2016-07-27 14:11:43 -07:00
2016-07-01 05:32:17 -04:00
2016-07-27 11:35:37 -07:00
2016-07-27 15:18:53 -07:00