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-Tag: upstream/snapshot3+hdmi~16057^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d53cfe590c17c28ebae2c869bb7a5ab9554b4da;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 fd12317..148b1dd 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) {