aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2009-07-20 00:47:04 +0000
committerDavid S. Miller <davem@davemloft.net>2009-07-20 08:23:36 -0700
commitf249fb783092471a4808e5fc5bda071d2724810d (patch)
tree12cd535e2ab69bd561124d5e0213fdc7fa0ea98c /net/core
parente4135c2da11c337e3759f98727c4819ba2a849fa (diff)
downloadkernel_samsung_crespo-f249fb783092471a4808e5fc5bda071d2724810d.zip
kernel_samsung_crespo-f249fb783092471a4808e5fc5bda071d2724810d.tar.gz
kernel_samsung_crespo-f249fb783092471a4808e5fc5bda071d2724810d.tar.bz2
Fix error return for setsockopt(SO_TIMESTAMPING)
I guess it should be -EINVAL rather than EINVAL. I have not checked when the bug came in. Perhaps a candidate for -stable? Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index d9eec15..bbb25be 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -631,7 +631,7 @@ set_rcvbuf:
case SO_TIMESTAMPING:
if (val & ~SOF_TIMESTAMPING_MASK) {
- ret = EINVAL;
+ ret = -EINVAL;
break;
}
sock_valbool_flag(sk, SOCK_TIMESTAMPING_TX_HARDWARE,