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

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
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment