projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1abd165
)
netlink: fix error propagation in netlink_mmap()
author
Patrick McHardy
<kaber@trash.net>
Tue, 11 Jun 2013 09:52:47 +0000
(
02:52
-0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 11 Jun 2013 09:52:47 +0000
(
02:52
-0700)
Return the error if something went wrong instead of unconditionally
returning 0.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netlink/af_netlink.c
b/net/netlink/af_netlink.c
index d0b3dd60d386bbef601a4109c19797cc1197d81e..57ee84d21470703b662f7320ed77bad518e5bede 100644
(file)
--- a/
net/netlink/af_netlink.c
+++ b/
net/netlink/af_netlink.c
@@
-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)