]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/sbus/char/flash.c: flash_read should update ppos instead of file->f_pos
authorJan Blunck <jblunck@suse.de>
Wed, 28 Apr 2010 01:48:52 +0000 (18:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 01:48:52 +0000 (18:48 -0700)
commit61f4b140522ad97dcf700964baab2cbe0e103300
treed00c309d4b9e80acf9e16ea398f2b7d410226325
parent11f9db8ee81fe3c0bf6f4d2ba4e3b590291d82ac
drivers/sbus/char/flash.c: flash_read should update ppos instead of file->f_pos

flash_read() updates file->f_pos directly instead of the ppos given.  The
VFS later updates the file->f_pos and overwrites it with the unchanged
value of ppos.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/flash.c