From: Jens Taprogge Date: Thu, 27 Sep 2012 10:37:32 +0000 (+0200) Subject: staging: ipack/devices/ipoctal: fix ipoctal_inst_slot error path. X-Git-Tag: firefly_0821_release~3680^2~1519^2~1208 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=295beb7127e683977cf9af438f5cf8419aa480c6;p=firefly-linux-kernel-4.4.55.git staging: ipack/devices/ipoctal: fix ipoctal_inst_slot error path. The ordering was wrong. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsalvez Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index 15477891220a..dbe02fe05af0 100644 --- a/drivers/staging/ipack/devices/ipoctal.c +++ b/drivers/staging/ipack/devices/ipoctal.c @@ -460,13 +460,13 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr, return 0; out_unregister_slot_unmap: - ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_ID_SPACE); + ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_MEM_SPACE); out_unregister_int_space: ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_INT_SPACE); out_unregister_io_space: ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_IO_SPACE); out_unregister_id_space: - ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_MEM_SPACE); + ipoctal->dev->bus->ops->unmap_space(ipoctal->dev, IPACK_ID_SPACE); return res; }