alpha: fix stack smashing in old_adjtimex(2)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 2b5efc08 c1ae3cfa

+1 -1
+1 -1
arch/alpha/kernel/osf_sys.c
··· 1290 1290 /* copy relevant bits of struct timex. */ 1291 1291 if (copy_from_user(&txc, txc_p, offsetof(struct timex32, time)) || 1292 1292 copy_from_user(&txc.tick, &txc_p->tick, sizeof(struct timex32) - 1293 - offsetof(struct timex32, time))) 1293 + offsetof(struct timex32, tick))) 1294 1294 return -EFAULT; 1295 1295 1296 1296 ret = do_adjtimex(&txc);