Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019415ce authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman
Browse files

staging: iio: ring_sw Fix pointer arithmetic for 64bit arches by using phys_addr_t

parent ccea5e1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -478,7 +478,7 @@ void iio_sw_trigger_bh_to_ring(struct work_struct *work_s)

	  /* Guaranteed to be aligned with 8 byte boundary */
	if (st->indio_dev->scan_timestamp)
		*(s64 *)(((u32)data + len
		*(s64 *)(((phys_addr_t)data + len
				+ sizeof(s64) - 1) & ~(sizeof(s64) - 1))
			= st->last_timestamp;
	  st->indio_dev->ring->access.store_to(st->indio_dev->ring,