Hannes Reinecke a13b0c9d09 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: cbba5b0ee4c6c2fc8b78a21d0900099d480cf2e9
Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Tejun Heo <tj@kernel.org>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2015-01-20 19:41:41 +01:00
..
2014-12-14 16:10:09 -08:00
2014-12-04 13:18:55 -05:00
2014-11-05 11:22:06 -05:00
2014-07-17 22:07:37 +02:00
2014-03-11 08:30:53 -04:00
2014-12-14 16:10:09 -08:00
2008-01-23 05:24:15 -05:00
2014-12-14 16:10:09 -08:00
2014-03-26 12:36:53 -04:00