Skip to contentSkip to conversation

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

PATCH New Kees Cook 1 participant 1 message Nov 5, 2017 Pcmcia

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 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
---
 drivers/pcmcia/omap_cf.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/pcmcia/omap_cf.c +3 -1
index 8216ceb51b18..c2a17a79f0b2 100644
@@ -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;
 }
 
Signature · 6 lines
2.7.4


-- 
Kees Cook
Pixel Security