Commit 6d53cfe5 authored by Roel Kluin's avatar Roel Kluin Committed by Martin Schwidefsky

[S390] dasd: PTR_ERR return of wrong pointer in

Return the PTR_ERR of the correct pointer.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent ea058544
...@@ -218,7 +218,7 @@ int dasd_alias_make_device_known_to_lcu(struct dasd_device *device) ...@@ -218,7 +218,7 @@ int dasd_alias_make_device_known_to_lcu(struct dasd_device *device)
spin_unlock_irqrestore(&aliastree.lock, flags); spin_unlock_irqrestore(&aliastree.lock, flags);
newlcu = _allocate_lcu(uid); newlcu = _allocate_lcu(uid);
if (IS_ERR(newlcu)) if (IS_ERR(newlcu))
return PTR_ERR(lcu); return PTR_ERR(newlcu);
spin_lock_irqsave(&aliastree.lock, flags); spin_lock_irqsave(&aliastree.lock, flags);
lcu = _find_lcu(server, uid); lcu = _find_lcu(server, uid);
if (!lcu) { if (!lcu) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment