瀏覽代碼

[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>
Roel Kluin 15 年之前
父節點
當前提交
6d53cfe590
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/s390/block/dasd_alias.c

+ 1 - 1
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) {