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

Commit c5a32017 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: Fix memcpy operations in ramdump_read"

parents 51e4e553 482d6eea
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -241,6 +241,8 @@ static ssize_t ramdump_read(struct file *filep, char __user *buf, size_t count,

	if ((unsigned long)device_mem & 0x7) {
		bytes_before = 8 - ((unsigned long)device_mem & 0x7);
		bytes_before = min_t(unsigned long, (unsigned long)copy_size,
				     bytes_before);
		memcpy_fromio(alignbuf, device_mem, bytes_before);
		device_mem += bytes_before;
		alignbuf += bytes_before;