]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: iio: fix trigger handler of iio_simple_dummy driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Fri, 22 Jun 2012 07:47:41 +0000 (09:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jun 2012 04:24:27 +0000 (21:24 -0700)
commit708706ff290545decbb7f43b533cb247e8ff64fd
tree6ec237bb2e412ff73aa65952c696f8e897859626
parent971ff1db41b0f16f34cfdeb9e0460d7dc598e68e
staging: iio: fix trigger handler of iio_simple_dummy driver

accessing first and last channel fails:
fakedata[0] is never accessed, out-of-bound access for last channel

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/iio_simple_dummy_buffer.c