提交 e9c16aff 编写于 作者: K Kees Cook 提交者: Greg Kroah-Hartman

drivers/pcmcia: omap1: Fix error in automated timer conversion

One part of automated timer conversion tools did not take into account
void * variables when searching out prior direct timer callback usage,
which resulted in an attempt to dereference the timer field without a
proper type.
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 991f8f1c
...@@ -102,7 +102,9 @@ static void omap_cf_timer(struct timer_list *t) ...@@ -102,7 +102,9 @@ static void omap_cf_timer(struct timer_list *t)
*/ */
static irqreturn_t omap_cf_irq(int irq, void *_cf) static irqreturn_t omap_cf_irq(int irq, void *_cf)
{ {
omap_cf_timer(&_cf->timer); struct omap_cf_socket *cf = (struct omap_cf_socket *)_cf;
omap_cf_timer(&cf->timer);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册