Staging: comedi: fix read past end of array in cb_pcidda_attach()
authorDan Carpenter <error27@gmail.com>
Mon, 21 Jun 2010 06:49:25 +0000 (08:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Jun 2010 15:18:15 +0000 (08:18 -0700)
commit821e67a135d8773c8e9c0b97088b2e64c3d0d631
treeae5f85c583220fd2432a5d9f162143b2d0e1d309
parent15d93ed070125d51693f102a0f94045dcaf30d9b
Staging: comedi: fix read past end of array in cb_pcidda_attach()

There are only 6 elements in the cb_pcidda_boards[] array so the
original code read past the end.  After this change nothing uses N_BOARDS
so I removed the definition.

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