netlink: fix error propagation in netlink_mmap()
authorPatrick McHardy <kaber@trash.net>
Tue, 11 Jun 2013 09:52:47 +0000 (02:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jun 2013 09:52:47 +0000 (02:52 -0700)
commit7cdbac71f911494aa7d0343be23c092ca84a5ed4
tree17a4958c72bde3bb69eb9ceb52910968ddb195f6
parent1abd165ed757db1afdefaac0a4bc8a70f97d258c
netlink: fix error propagation in netlink_mmap()

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