diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-18 17:43:17 +0100 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-12-18 17:43:31 +0100 |
commit | 6d53cfe590c17c28ebae2c869bb7a5ab9554b4da (patch) | |
tree | a331cc9c6e5485b8562075dd05e77f536bd0a838 /drivers/s390/block | |
parent | ea058544542a60e92fd023d93aa901709be18daa (diff) | |
download | kernel_samsung_tuna-6d53cfe590c17c28ebae2c869bb7a5ab9554b4da.zip kernel_samsung_tuna-6d53cfe590c17c28ebae2c869bb7a5ab9554b4da.tar.gz kernel_samsung_tuna-6d53cfe590c17c28ebae2c869bb7a5ab9554b4da.tar.bz2 |
[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>
Diffstat (limited to 'drivers/s390/block')
-rw-r--r-- | drivers/s390/block/dasd_alias.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |