From: Hannes Reinecke Date: Mon, 19 Jan 2015 15:55:38 +0000 (+0100) Subject: libata: fixup oops in ata_eh_link_report() X-Git-Tag: fixes-v4.0-rc1~143^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a13b0c9d09157e331b31e25c1ea19216b837a619;p=pandora-kernel.git 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-diff-tree failed