From a13b0c9d09157e331b31e25c1ea19216b837a619 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Mon, 19 Jan 2015 16:55:38 +0100 Subject: [PATCH] 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 Signed-off-by: Hannes Reinecke Reviewed-by: Tejun Heo Tested-by: Sergey Senozhatsky Signed-off-by: Christoph Hellwig --- Reading git-format-patch failed