]> git.baikalelectronics.ru Git - kernel.git/commit
net: sun: fix missing release regions in cas_init_one().
authorQiushi Wu <wu000273@umn.edu>
Fri, 22 May 2020 21:50:27 +0000 (16:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 23:19:46 +0000 (16:19 -0700)
commit159a12717d7632817df2873aacd6eeb495af2f5f
tree42932c9c633d739cfadb6370b84afb2e4cc58ce1
parentc2dfaa5d2f3dfa34842c028d6d058cf40c3e3072
net: sun: fix missing release regions in cas_init_one().

In cas_init_one(), "pdev" is requested by "pci_request_regions", but it
was not released after a call of the function “pci_write_config_byte”
failed. Thus replace the jump target “err_write_cacheline” by
"err_out_free_res".

Fixes: 5d78d904a391 ("[NET]: Add Sun Cassini driver.")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/cassini.c