Staging: comedi: reorder check in pcmmio_attach()
authorDan Carpenter <error27@gmail.com>
Mon, 28 Dec 2009 16:59:01 +0000 (18:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:38 +0000 (16:42 -0800)
commit4b2ba24399cfcd7c80a20cd3bbedc5df0ebd4345
treee3662756966b3b775f6172fb985512b83073c0d7
parent5d3aed742498ffe5692e3f974f3f7ea0e99a93bb
Staging: comedi: reorder check in pcmmio_attach()

The check for dio_num_asics is used to determine if there is more than 1 irq.
If it is false then irq[1] is past the end of the array.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/pcmmio.c