]> 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)
commitb660aeeb34b5eb5c98e29e2df1185e5a565494fc
tree42932c9c633d739cfadb6370b84afb2e4cc58ce1
parentfd7b53672e9e0ee48128afa2164c4b0c95a72908
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