scsi: qla2xxx: Error code did not return to upper layer
[linux-2.6-microblaze.git] / drivers / scsi / qla2xxx / qla_init.c
index d9a7d63..e733be7 100644 (file)
@@ -2223,6 +2223,8 @@ __qla2x00_async_tm_cmd(struct tmf_arg *arg)
                        rval = QLA_FUNCTION_FAILED;
                }
        }
+       if (tm_iocb->u.tmf.data)
+               rval = tm_iocb->u.tmf.data;
 
 done_free_sp:
        /* ref: INIT */