]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/ide/pdc202xx_new.c
pdc202xx_new: add missing ->dma_base check
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 20 Aug 2007 20:42:56 +0000 (22:42 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 20 Aug 2007 20:42:56 +0000 (22:42 +0200)
commit01cc643ae3c7de35b63989b7b65e3ef3132e48e4
tree65f90e393855ff1a457680040df7b5d6b36e0d54
parentf7b0d2df2f6fd9abdf47b4a1965dcaa2870e35df
pdc202xx_new: add missing ->dma_base check

If ->dma_base is not set (== PCI BAR4 cannot be reserved) then DMA hooks
shouldn't be initialized or bad things will happen.

Also this host driver requires valid PCI BAR4 for normal operation so
check it in ->init_chipset and fail initialization if not set.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/pdc202xx_new.c