Staging: comedi: serial2002: Fix memory leak on detach
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 May 2010 13:10:02 +0000 (14:10 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Jun 2010 20:28:56 +0000 (13:28 -0700)
commitfa3b5d9ab0487f58b45d55a37070aa0d417f59d5
tree5bad2426172b6d7075b38f06129128aa7e90c1ad
parent9e7f2256883c954691e5d395d471e0f125f6b30b
Staging: comedi: serial2002: Fix memory leak on detach

The comedi device 'detach' method for the serial2002 driver has an
off-by-one error in its loop for freeing data belonging to its
subdevices.  Fix it.

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