From e954b6f6756c055e221df4f7ab2d7ef94501a5f4 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Thu, 3 Jun 2004 02:47:39 -0700 Subject: [PATCH] [PATCH] sparse: sound/core/timer.c fix copy_from_user() where copy_to_user() should've been. Unfortunately, on x86 they are almost identical, so it went unnoticed for quite a while. --- sound/core/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/timer.c b/sound/core/timer.c index 956ea2a16edbd..1f23781d2bdcd 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -1437,7 +1437,7 @@ static int snd_timer_user_gstatus(struct file *file, snd_timer_gstatus_t *_gstat err = -ENODEV; } up(®ister_mutex); - if (err >= 0 && copy_from_user(_gstatus, &gstatus, sizeof(gstatus))) + if (err >= 0 && copy_to_user(_gstatus, &gstatus, sizeof(gstatus))) err = -EFAULT; return err; } -- 2.53.0