From: Roel Kluin Date: Fri, 18 Dec 2009 16:43:17 +0000 (+0100) Subject: [S390] dasd: PTR_ERR return of wrong pointer in X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d53cfe590c17c28ebae2c869bb7a5ab9554b4da;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [S390] dasd: PTR_ERR return of wrong pointer in Return the PTR_ERR of the correct pointer. Signed-off-by: Roel Kluin Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/block/dasd_alias.c b/drivers/s390/block/dasd_alias.c index fd1231738ef..148b1dd2407 100644 --- a/drivers/s390/block/dasd_alias.c +++ b/drivers/s390/block/dasd_alias.c @@ -218,7 +218,7 @@ int dasd_alias_make_device_known_to_lcu(struct dasd_device *device) spin_unlock_irqrestore(&aliastree.lock, flags); newlcu = _allocate_lcu(uid); if (IS_ERR(newlcu)) - return PTR_ERR(lcu); + return PTR_ERR(newlcu); spin_lock_irqsave(&aliastree.lock, flags); lcu = _find_lcu(server, uid); if (!lcu) {