You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] libata: fix passthru sense data header
sb[7] should contain the length of whole information sense data descriptor while desc[1] should contain the number of following bytes in the descriptor. ie. 14 for sb[7] but 12 for desc[1]. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
@@ -713,12 +713,9 @@ void ata_gen_ata_desc_sense(struct ata_queued_cmd *qc)
|
|||||||
|
|
||||||
desc[0] = 0x09;
|
desc[0] = 0x09;
|
||||||
|
|
||||||
/*
|
/* set length of additional sense data */
|
||||||
* Set length of additional sense data.
|
sb[7] = 14;
|
||||||
* Since we only populate descriptor 0, the total
|
desc[1] = 12;
|
||||||
* length is the same (fixed) length as descriptor 0.
|
|
||||||
*/
|
|
||||||
desc[1] = sb[7] = 14;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy registers into sense buffer.
|
* Copy registers into sense buffer.
|
||||||
|
|||||||
Reference in New Issue
Block a user