]> git.baikalelectronics.ru Git - kernel.git/commit
atm: zatm: Fix an error handling path in 'zatm_init_one()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Mon, 17 Jul 2017 17:42:41 +0000 (19:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:37:46 +0000 (11:37 -0700)
commit330e64b91cadbf035daa9a9d780209de09cd9a24
tree19633dca9c18f5b69ba269c3c5e9918b20dbe149
parent4f508edc0bbc5d92236e1bbed01a9baad6aaba1b
atm: zatm: Fix an error handling path in 'zatm_init_one()'

If 'dma_set_mask_and_coherent()' fails, we must undo the previous
'pci_request_regions()' call.
Adjust corresponding 'goto' to jump at the right place of the error
handling path.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/zatm.c