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

Commit b270ee8a authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix offset calculation in compute_size()



The fault address is somewhere inside of the buffer, not
before it.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent be1ffce3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ static unsigned long compute_size(unsigned long start, unsigned long size, unsig
	if (fault_addr < start || fault_addr >= end) {
		*offset = 0;
	} else {
		*offset = start - fault_addr;
		*offset = fault_addr - start;
		size = end - fault_addr;
	}
	return size;