dde_linux: fix timer callback compatibility with older drivers

Fixes #3137
This commit is contained in:
Christian Prochaska
2019-01-31 17:55:54 +01:00
committed by Norman Feske
parent 845253af3a
commit e9e048c4ea
5 changed files with 45 additions and 9 deletions

View File

@ -60,8 +60,14 @@ class Lx_kit::Timer : public Lx::Timer
case LIST:
{
timer_list *t = static_cast<timer_list *>(timer);
if (t->function)
t->function(t);
if (t->function) {
/*
* Pass 't->data' instead of 't' for compatibility
* with 4.4.3 drivers. When set up with
* 'timer_setup()', 't->data' matches 't'.
*/
t->function((struct timer_list*)t->data);
}
}
break;