]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75ce03fcd28b1a82423963aececd050a55c3a360
treeae5f85c583220fd2432a5d9f162143b2d0e1d309
parentf67bd4a521d0df53fe4a000e4d9d38d021188b4e
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