diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index 473b43678ad12ef360801ffd9e32594285efd41a..41eb6fdf87a84d05ae43bfd769943a89abb47d98 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h @@ -401,7 +401,7 @@ __kfifo_int_must_check_helper( \ ((typeof(__tmp->type))__kfifo->data) : \ (__tmp->buf) \ )[__kfifo->in & __tmp->kfifo.mask] = \ - (typeof(*__tmp->type))__val; \ + *(typeof(__tmp->type))&__val; \ smp_wmb(); \ __kfifo->in++; \ } \