mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 01:40:30 +00:00
[S390] dasd: fix return code handling
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>
This commit is contained in:
parent
7712f83aa9
commit
364c18d817
@ -2552,8 +2552,7 @@ static int prepare_itcw(struct itcw *itcw,
|
|||||||
|
|
||||||
dcw = itcw_add_dcw(itcw, pfx_cmd, 0,
|
dcw = itcw_add_dcw(itcw, pfx_cmd, 0,
|
||||||
&pfxdata, sizeof(pfxdata), total_data_size);
|
&pfxdata, sizeof(pfxdata), total_data_size);
|
||||||
|
return IS_ERR(dcw) ? PTR_ERR(dcw) : 0;
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track(
|
static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track(
|
||||||
|
Loading…
Reference in New Issue
Block a user