Skip to content
Commit aff34310 authored by Tyler Erickson's avatar Tyler Erickson Committed by Greg Kroah-Hartman
Browse files

libata: fix reading concurrent positioning ranges log

commit c745dfc5 upstream.

The concurrent positioning ranges log is not a fixed size and may depend
on how many ranges are supported by the device. This patch uses the size
reported in the GPL directory to determine the number of pages supported
by the device before attempting to read this log page.

This resolves this error from the dmesg output:
    ata6.00: Read log 0x47 page 0x00 failed, Emask 0x1

Cc: stable@vger.kernel.org
Fixes: fe22e1c2

 ("libata: support concurrent positioning ranges log")
Signed-off-by: default avatarTyler Erickson <tyler.erickson@seagate.com>
Reviewed-by: default avatarMuhammad Ahmad <muhammad.ahmad@seagate.com>
Tested-by: default avatarMichael English <michael.english@seagate.com>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 776d2c55
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment