diff options
author | Shan Hai <shan.hai@windriver.com> | 2013-03-18 10:30:43 +0800 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2013-04-03 19:33:40 -0400 |
commit | d8668fcb0b257d9fdcfbe5c172a99b8d85e1cd82 (patch) | |
tree | 855e29baf8416d41edca4cad42e85e96d574072c /drivers/ata | |
parent | da241efcd9c3da2af6ba20055c7e158ec725005c (diff) | |
download | linux-stable-d8668fcb0b257d9fdcfbe5c172a99b8d85e1cd82.tar.gz linux-stable-d8668fcb0b257d9fdcfbe5c172a99b8d85e1cd82.tar.bz2 linux-stable-d8668fcb0b257d9fdcfbe5c172a99b8d85e1cd82.zip |
libata: Use integer return value for atapi_command_packet_set
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.
Cc: stable@vger.kernel.org
Signed-off-by: Shan Hai <shan.hai@windriver.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions