]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adl_pci8164: remove buggy dev_dbg()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 6 Mar 2013 22:57:24 +0000 (15:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 17:10:16 +0000 (10:10 -0700)
commit534b3fb53b50e87eb1b71725d8c9d5d9b3574522
tree6c3017374f6b067065a1fa96a0337f5e7529b890
parent5389d1d0f803e60e5c79f98103bef37a622c839c
staging: comedi: adl_pci8164: remove buggy dev_dbg()

The dev_dbg() messages in the adl_pci8164_insn_{read,out} functions
output the 'data' that was read/write to the device. Two 'data' values
are always printed, data[0] and data[1].

The 'data' pointer points to an array of unsigned int values. The number
of values in the array is indicated by insn->n. The number of data
elements is never checked so the dev_dbg() could be trying to access
a 'data' element that is invalid.

Instead of fixing the dev_dbg() just remove them. They are really just
added noise.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci8164.c