]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Staging: comedi: jr3_pci: Don't ioremap too much space. Check result.
authorIan Abbott <abbotti@mev.co.uk>
Mon, 30 Nov 2009 10:59:27 +0000 (10:59 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 21:29:59 +0000 (14:29 -0700)
commit102123644979069c61d694375991aa6793e4da57
tree00d1fb40afbdfd1c05beb6d88a60d3532d6894a3
parent649f25c389e9498923b459bbffff41a2fd1d7a64
Staging: comedi: jr3_pci: Don't ioremap too much space. Check result.

commit fa5c5f4ce0c9ba03a670c640cad17e14cb35678b upstream.

For the JR3/PCI cards, the size of the PCIBAR0 region depends on the
number of channels.  Don't try and ioremap space for 4 channels if the
card has fewer channels.  Also check for ioremap failure.

Thanks to Anders Blomdell for input and Sami Hussein for testing.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/jr3_pci.c