net_failover: fixed rollback in net_failover_open()
authorVasily Averin <vvs@virtuozzo.com>
Tue, 2 Jun 2020 12:55:26 +0000 (15:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2020 22:35:53 +0000 (15:35 -0700)
commite8224bfe77293494626f6eec1884fee7b87d0ced
treed50e6f890a7b2cf8aae699bed32164342879bdfa
parent241d46dce9f4ee64e742e12568034b9ba4762961
net_failover: fixed rollback in net_failover_open()

found by smatch:
drivers/net/net_failover.c:65 net_failover_open() error:
 we previously assumed 'primary_dev' could be null (see line 43)

Fixes: cfc80d9a1163 ("net: Introduce net_failover driver")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/net_failover.c