Staging: comedi: s626: Possible read buffer overflow fix
commit4ff863b1db411481971de481002aa644057b1fa6
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 7 Aug 2009 22:14:20 +0000 (8 00:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:34 +0000 (15 12:01 -0700)
tree5b6ef25ec5f31e80805e37a32ea0f49be3268ad9
parent88a28c828f25f15bf8258ae834bcb47adf3e67b4
Staging: comedi: s626: Possible read buffer overflow fix

If `cmd->chanlist_len' is 0, then we write ppl[-1].

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/s626.c