]> git.baikalelectronics.ru Git - kernel.git/commit
net: seeq: Fix the function used to release some memory in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 31 Aug 2019 07:17:51 +0000 (09:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 19:10:11 +0000 (12:10 -0700)
commit1150dd43fbac1a847ca19a5bff17d806a8426f8e
tree632253e7c74f8069a044fc0c8e5e87c673025277
parent9b940b2b4e0b1370f6341782d90f1838802e9240
net: seeq: Fix the function used to release some memory in an error handling path

In commit 47330dd6483f ("sgiseeq: replace use of dma_cache_wback_inv"),
a call to 'get_zeroed_page()' has been turned into a call to
'dma_alloc_coherent()'. Only the remove function has been updated to turn
the corresponding 'free_page()' into 'dma_free_attrs()'.
The error hndling path of the probe function has not been updated.

Fix it now.

Rename the corresponding label to something more in line.

Fixes: 47330dd6483f ("sgiseeq: replace use of dma_cache_wback_inv")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/seeq/sgiseeq.c