commit | a478b097474cd9f2268ab1beaca74ff09e652b9b | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Thu Oct 20 17:15:41 2016 +0200 |
committer | Tejun Heo <tj@kernel.org> | Thu Oct 20 13:40:14 2016 -0400 |
tree | cfc4712ffb2d1edfa7b762f0c8272e71297dc27c | |
parent | 17a51f12cfbd2814fd35966a069b242569c53e27 [diff] |
ahci: fix nvec check commit 17a51f12 ("ahci: only try to use multi-MSI mode if there is more than 1 port") lead to a case where nvec isn't initialized before it's used. Fix this by moving the check into the n_ports conditional. Reported-and-reviewed-by Colin Ian King <colin.king@canonical.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Tejun Heo <tj@kernel.org>