projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7712f83
)
[S390] dasd: fix return code handling
author
Heiko Carstens
<heiko.carstens@de.ibm.com>
Mon, 23 May 2011 08:24:26 +0000
(10:24 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Mon, 23 May 2011 08:24:28 +0000
(10:24 +0200)
Check return value of itcw_add_dcw() for error code and return it.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_eckd.c
patch
|
blob
|
history
diff --git
a/drivers/s390/block/dasd_eckd.c
b/drivers/s390/block/dasd_eckd.c
index 58209434c99279b6dd4f3897d4162d9a05cd3a5c..30fb979d684d0043d2b1f6b0aff2fda6ebe8cfcd 100644
(file)
--- a/
drivers/s390/block/dasd_eckd.c
+++ b/
drivers/s390/block/dasd_eckd.c
@@
-2552,8
+2552,7
@@
static int prepare_itcw(struct itcw *itcw,
dcw = itcw_add_dcw(itcw, pfx_cmd, 0,
&pfxdata, sizeof(pfxdata), total_data_size);
-
- return rc;
+ return IS_ERR(dcw) ? PTR_ERR(dcw) : 0;
}
static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track(