mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
[S390] dasd: PTR_ERR return of wrong pointer in
Return the PTR_ERR of the correct pointer. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
ea05854454
commit
6d53cfe590
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue