svn commit: r193297 - in stable/7/sys: . compat/linux contrib/pf
dev/ath/ath_hal dev/cxgb
Dmitry Chagin
dchagin at FreeBSD.org
Tue Jun 2 04:47:29 UTC 2009
Author: dchagin
Date: Tue Jun 2 04:47:28 2009
New Revision: 193297
URL: http://svn.freebsd.org/changeset/base/193297
Log:
MFC r191875:
Return EAFNOSUPPORT instead of EINVAL in case when the incorrect or
unsupported domain argument to linux_socket() is specified.
Approved by: kib (mentor)
Modified:
stable/7/sys/ (props changed)
stable/7/sys/compat/linux/linux_socket.c
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/ath/ath_hal/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
Modified: stable/7/sys/compat/linux/linux_socket.c
==============================================================================
--- stable/7/sys/compat/linux/linux_socket.c Tue Jun 2 04:45:56 2009 (r193296)
+++ stable/7/sys/compat/linux/linux_socket.c Tue Jun 2 04:47:28 2009 (r193297)
@@ -556,7 +556,7 @@ linux_socket(struct thread *td, struct l
bsd_args.type = args->type;
bsd_args.domain = linux_to_bsd_domain(args->domain);
if (bsd_args.domain == -1)
- return (EINVAL);
+ return (EAFNOSUPPORT);
retval_socket = socket(td, &bsd_args);
if (bsd_args.type == SOCK_RAW
More information about the svn-src-all
mailing list