]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07b7b5dfb644c8cfaceee595b54f2ac7f4efc4d2
treed50e6f890a7b2cf8aae699bed32164342879bdfa
parent6a5d5eb4cf5c094f5f96628c99761106c64e9704
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: 8a44e20be97a ("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