diff options
author | Shan Hai <shan.hai@windriver.com> | 2013-03-18 10:30:43 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-12 09:18:08 -0700 |
commit | 878315cbf04dde3f93bf796f1835ae8d07604ba7 (patch) | |
tree | ce9444bb9ec5aaa4e136eabcf64d4d0255719f61 /arch | |
parent | a58e3e13f5f8c03a88195c45771b2ef3a7a53f75 (diff) | |
download | kernel_samsung_smdk4412-878315cbf04dde3f93bf796f1835ae8d07604ba7.zip kernel_samsung_smdk4412-878315cbf04dde3f93bf796f1835ae8d07604ba7.tar.gz kernel_samsung_smdk4412-878315cbf04dde3f93bf796f1835ae8d07604ba7.tar.bz2 |
libata: Use integer return value for atapi_command_packet_set
commit d8668fcb0b257d9fdcfbe5c172a99b8d85e1cd82 upstream.
The function returns type of ATAPI drives so it should return integer value.
The commit 4dce8ba94c7 (libata: Use 'bool' return value for ata_id_XXX) since
v2.6.39 changed the type of return value from int to bool, the change would
cause all of the ATAPI class drives to be treated as TYPE_TAPE and the
max_sectors of the drives to be set to 65535 because of the commit
f8d8e5799b7(libata: increase 128 KB / cmd limit for ATAPI tape drives), for the
function would return true for all ATAPI class drives and the TYPE_TAPE is
defined as 0x01.
Signed-off-by: Shan Hai <shan.hai@windriver.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions