Revision a478b097474cd9f2268ab1beaca74ff09e652b9b authored by Christoph Hellwig on 20 October 2016, 15:15:41 UTC, committed by Tejun Heo on 20 October 2016, 17:40:14 UTC
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>
1 parent 17a51f1
History
File Mode Size
ras_event.h -rw-r--r-- 9.2 KB

back to top