From: Lee Jones Date: Thu, 28 Aug 2014 13:59:50 +0000 (+0100) Subject: phy: miphy365x: Fix off-by-one error X-Git-Tag: fixes-for-v3.18-merge-window~97^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6cc1b9478e769aca95d3a1bcb071d38b3f6bc30;p=pandora-kernel.git phy: miphy365x: Fix off-by-one error We index the RX/TX speed select values in the following way: rx_tx_spd[miphy_phy->sata_gen]; However rx_tx_spd[] starts at index zero and the SATA_GENx's start at one. In this patch we pad out the first element in rx_tx_spd[] in an attempt to realign the values. Cc: Alexandre Torgue Reported-by: Gabriel Fernandez Signed-off-by: Lee Jones Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed