Staging: comedi: serial2002: Reduce stack usage on 'open'
commit668f272e57e80ece987bed273096f8e3a707123c
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 May 2010 13:10:03 +0000 (19 14:10 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Jun 2010 20:28:57 +0000 (17 13:28 -0700)
tree8c75ccf8c86b082040feca43db00478548ef5a74
parentfa3b5d9ab0487f58b45d55a37070aa0d417f59d5
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