]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: comedi: serial2002: Reduce stack usage on 'open'
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 May 2010 13:10:03 +0000 (14:10 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Jun 2010 20:28:57 +0000 (13:28 -0700)
commita75a0f5926c40792917df4a5bba0e2c6b44c400a
tree8c75ccf8c86b082040feca43db00478548ef5a74
parent5cd13b34f82597179e78110bb84eccafe7cbfe25
Staging: comedi: serial2002: Reduce stack usage on 'open'

Reduce stack usage in serial_2002_open() by allocating dig_in_config,
dig_out_config, chan_in_config, and chan_out_config temporary arrays
using kcalloc() and freeing them when done with.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/serial2002.c