X-Git-Url: http://git.etherboot.org/mirror/scst/.git/blobdiff_plain/ac02f8d40774c33f6c9b78a38a55fc34a1784bf7..1e05cc1fc48aae1939a0c6f1a31da85c925a6fdb:/scst/src/scst_lib.c?ds=sidebyside diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index e517c07..9f60168 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2477,7 +2477,13 @@ int scst_get_cdb_len(const uint8_t *cdb) /* get_trans_len_x extract x bytes from cdb as length starting from off */ -/* for special commands */ +static int get_trans_cdb_len_10(struct scst_cmd *cmd, uint8_t off) +{ + cmd->cdb_len = 10; + cmd->bufflen = 0; + return 0; +} + static int get_trans_len_block_limit(struct scst_cmd *cmd, uint8_t off) { cmd->bufflen = 6;