From: Ian Abbott Date: Mon, 30 Nov 2009 10:59:27 +0000 (+0000) Subject: Staging: comedi: jr3_pci: Don't ioremap too much space. Check result. X-Git-Tag: v2.6.33-rc2~13^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa5c5f4ce0c9ba03a670c640cad17e14cb35678b;p=pandora-kernel.git Staging: comedi: jr3_pci: Don't ioremap too much space. Check result. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed