]> git.baikalelectronics.ru Git - kernel.git/commit
libata-sff: Don't try and activate channels which are not in use
authorAlan <alan@lxorguk.ukuu.org.uk>
Mon, 8 Jan 2007 12:10:05 +0000 (12:10 +0000)
committerJeff Garzik <jeff@garzik.org>
Fri, 9 Feb 2007 22:39:30 +0000 (17:39 -0500)
commit43efd0120c1f4fb38e78ad78f39ead0a131217a4
treec48274decc14c4d71dd99f9c3f93087698e767f4
parent64a91f7cf1391d9c654502443d2c2549c0f8b62f
libata-sff: Don't try and activate channels which are not in use

An ATA controller in native mode may have one or more channels disabled
and not assigned resources. In that case the existing code crashes trying
to access I/O ports 0-7.

Add the neccessary check.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-sff.c