Skip to content
Commit a13b0c9d authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Christoph Hellwig
Browse files

libata: fixup oops in ata_eh_link_report()



We should only try to evaluate the cdb if this is an ATAPI
device, for any other device the 'cdb' field and the cdb_len
has no meaning.

Fixes: cbba5b0e
Reported-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarTejun Heo <tj@kernel.org>
Tested-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent a63bb9ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment