From: Roel Kluin Date: Fri, 11 Sep 2009 08:28:55 +0000 (+0200) Subject: [S390] tape: reversed order of labels X-Git-Tag: firefly_0821_release~13014^2~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68d36bdbf6377d36129b2c6bcbe9d24c5fb1739a;p=firefly-linux-kernel-4.4.55.git [S390] tape: reversed order of labels Fix the order of goto labels in tape_generic_online. Signed-off-by: Roel Kluin --- diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index 1d420d947596..7424d648e81f 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c @@ -358,11 +358,11 @@ tape_generic_online(struct tape_device *device, out_char: tapechar_cleanup_device(device); +out_minor: + tape_remove_minor(device); out_discipline: device->discipline->cleanup_device(device); device->discipline = NULL; -out_minor: - tape_remove_minor(device); out: module_put(discipline->owner); return rc;