pps: locking scheme fix up for PPS_GETPARAMS
commit073493a20768a109ed1e6e744a2fe88e8bbd2fab
authorRodolfo Giometti <giometti@linux.it>
Wed, 11 Nov 2009 22:26:52 +0000 (11 14:26 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:21:18 +0000 (8 10:21 -0800)
treed391fccb7734d75862eb11c0d586e1546a5b4cda
parentf1d8f4d0822df5c5f06021d221658fe2ad25c0cb
pps: locking scheme fix up for PPS_GETPARAMS

commit cbf83cc5a29dba480cf1ba1c5e3417a0d4a31410 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pps/pps.c