pps: locking scheme fix up for PPS_GETPARAMS
authorRodolfo Giometti <giometti@linux.it>
Wed, 11 Nov 2009 22:26:52 +0000 (14:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Nov 2009 15:26:00 +0000 (07:26 -0800)
commitcbf83cc5a29dba480cf1ba1c5e3417a0d4a31410
treeeb7757638e0a8e5509066eebec053a7bffe0138a
parent69fd8d24673a8f4f8be5db7f84b5dc9e4ff354c8
pps: locking scheme fix up for PPS_GETPARAMS

Userland programs may read/write PPS parameters at same time and these
operations may corrupt PPS data.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Tested-by: Reg Clemens <clemens@dwf.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pps/pps.c