Skip to content

Commit

Permalink
drivers/pcmcia: omap1: Fix error in automated timer conversion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kees Cook committed Nov 6, 2017
1 parent 14c8276 commit 439dc05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/pcmcia/omap_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 439dc05

Please sign in to comment.