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

Commit 7cdbac71 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

netlink: fix error propagation in netlink_mmap()



Return the error if something went wrong instead of unconditionally
returning 0.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1abd165e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -371,7 +371,7 @@ static int netlink_mmap(struct file *file, struct socket *sock,
	err = 0;
out:
	mutex_unlock(&nlk->pg_vec_lock);
	return 0;
	return err;
}

static void netlink_frame_flush_dcache(const struct nl_mmap_hdr *hdr)