staging: most: fix tracking of MBO offset
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 22 Dec 2015 09:52:48 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commit9e2f2c4fb93a12e20f6bd82e1b9bf3df36236198
treec33a8c5c39646e7334ea395c06f8a81c1354b025
parent8a742f785bbda4a60288325e42953515c2320b50
staging: most: fix tracking of MBO offset

This patch increments mbo_offs by the number of bytes that have
been copied and resets it in case a complete mbo has been transferred
to user buffer.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c