浏览代码

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: kbuild test robot
Signed-off-by: Kees Cook <keescook@chromium.org>
Kees Cook 7 年之前
父节点
当前提交
439dc05fbf
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      drivers/pcmcia/omap_cf.c

+ 3 - 1
drivers/pcmcia/omap_cf.c

@@ -102,7 +102,9 @@ static void omap_cf_timer(struct timer_list *t)
  */
 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;
 }